Please update java doc to show correct method description of peerGroup.broadcastTransaction(req.tx).get(). get() method is no more in 0.15.6 but still in docs.

29 views
Skip to first unread message

Abhishek Singh Rajawat

unread,
Jan 5, 2020, 6:47:38 AM1/5/20
to bitcoinj
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() 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. 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?

Dragan Milosevic

unread,
Feb 17, 2020, 6:36:31 AM2/17/20
to bitcoinj
earn real free bitcoin

join and start to earn fast

Reply all
Reply to author
Forward
0 new messages