mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 22:58:32 +01:00
TransactionBroadcast: Propagate context to EnoughAvailablePeers runnable.
This commit is contained in:
parent
c9cfd15f7f
commit
6e46d75c61
1 changed files with 7 additions and 0 deletions
|
@ -116,8 +116,15 @@ public class TransactionBroadcast {
|
|||
}
|
||||
|
||||
private class EnoughAvailablePeers implements Runnable {
|
||||
private Context context;
|
||||
|
||||
public EnoughAvailablePeers() {
|
||||
this.context = Context.get();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
Context.propagate(context);
|
||||
// We now have enough connected peers to send the transaction.
|
||||
// This can be called immediately if we already have enough. Otherwise it'll be called from a peer
|
||||
// thread.
|
||||
|
|
Loading…
Add table
Reference in a new issue