Thanks for the answer. I could not find the code that "automatically rebroadcasts all unconfirmed transactions that are in your wallet once after you start a connectedPeerGroup and enough peers are connected". Could you point me to it?
In any case, that would require a restart of the app to fix a tx that is stuck. I would like a tx to be rebroadcasted automatically if TransactionBroadcast could not mark the broadcast as complete after ~10 seconds (maybe more because I kinda heard there might be delays with nodes running behind tor) and every ~45 minutes if tx was not mined. I can imagine someone already thought about this, but I could not find any discussion on this subject here nor on the bitcoin-dev mailing list, but maybe I missed something. On Wed, Mar 13, 2019 at 9:20 AM Andreas Schildbach <andr...@schildbach.de> wrote: > > On 13/03/2019 00.26, Oscar Guindzberg wrote: > > > Is there any email thread or doc about what happens when there is a > > problem on tx broadcast? > > > > Maybe discussions about whether bitcoinj should rebroadcast the tx, if > > that is the user responsibility, when to do the rebroadcast, etc. > > Currently bitcoinj automatically rebroadcasts all unconfirmed > transactions that are in your wallet once after you start a connected > PeerGroup and enough peers are connected. > > Of course if the transaction is (or has become) invalid, that effert is > in vein. You will need to replay your wallet to get rid of such > transactions. I'm not aware of further plans on this matter, but feel > free to share your thoughts. > > -- > 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 bitcoinj+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Oscar Guindzberg -- 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 bitcoinj+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.