mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-12 10:15:52 +00:00
TransactionBroadcast: Propagate context to EnoughAvailablePeers runnable.
This commit is contained in:
parent
c9cfd15f7f
commit
6e46d75c61
@ -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…
x
Reference in New Issue
Block a user