novitski / bitcoinj

Automatically exported from code.google.com/p/bitcoinj
Apache License 2.0
0 stars 0 forks source link

Change how pending transactions are broadcast #443

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Resolve the problems reported here:

   https://bitcointalk.org/index.php?topic=278891.new#new

Original issue reported on code.google.com by mh.in.en...@gmail.com on 23 Aug 2013 at 7:44

GoogleCodeExporter commented 9 years ago
The code in master should work better. The new algorithm is to take half the 
connected peers and send the tx to them. Then the tx is considered propagated 
once half the remaining half (i.e. a quarter) of peers have announced. The 
selection of which half gets the transactions is random.

In this way, even if a random subset of peers silently swallow transactions, 
there's still a good chance of it working.

However, this does cause problems with wallet UIs that track propagation. There 
is a a separate bug for this, so I'm resolving this one. If Andreas reports 
that it isn't working, I'll re-open.

Original comment by mh.in.en...@gmail.com on 11 Nov 2013 at 6:11