peerGroup.broadcastTransaction(req.tx) java docs (which shows on 
ctrl+space) shows get() method which throws eception when something goes 
wrong but its not there in 0.15.6 version. However, java docs still shows 
this in method description. Method description is as below;

"Given a transaction, sends it un-announced to one peer and then waits for 
it to be received back from other peers. Once all connected peers have 
announced the transaction, the future available via the 
TransactionBroadcast.future() 
<eclipse-javadoc:%E2%98%82=earnography-server/%5C/home%5C/abhishek%5C/.m2%5C/repository%5C/org%5C/bitcoinj%5C/bitcoinj-core%5C/0.15.6%5C/bitcoinj-core-0.15.6.jar%3Corg.bitcoinj.core(PeerGroup.class%E2%98%83PeerGroup~broadcastTransaction~Lorg.bitcoinj.core.Transaction;~I%E2%98%82TransactionBroadcast%E2%98%82future%E2%98%82>
 method will be completed. If anything goes wrong the exception will be 
thrown when get() is called, or you can receive it via a callback on the 
ListenableFuture 
<eclipse-javadoc:%E2%98%82=earnography-server/%5C/home%5C/abhishek%5C/.m2%5C/repository%5C/org%5C/bitcoinj%5C/bitcoinj-core%5C/0.15.6%5C/bitcoinj-core-0.15.6.jar%3Corg.bitcoinj.core(PeerGroup.class%E2%98%83PeerGroup~broadcastTransaction~Lorg.bitcoinj.core.Transaction;~I%E2%98%82ListenableFuture>.
 
This method returns immediately, so if you want it to block just call get() 
on the result."

What is the latest way to get exception if something goes wrong while 
broadcast? Or you can say what the other way bitcoinj provide now when they 
removed get() method?

-- 
You received this message because you are subscribed to the Google Groups 
"bitcoinj" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bitcoinj/50d798ca-97aa-46f5-9c50-d4d61dcb4623%40googlegroups.com.

Reply via email to