3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-12 18:25:51 +00:00

TransactionBroadcast: Propagate context to EnoughAvailablePeers runnable.

This commit is contained in:
Andreas Schildbach 2018-03-04 21:30:37 +01:00
parent c9cfd15f7f
commit 6e46d75c61

View File

@ -116,8 +116,15 @@ public class TransactionBroadcast {
} }
private class EnoughAvailablePeers implements Runnable { private class EnoughAvailablePeers implements Runnable {
private Context context;
public EnoughAvailablePeers() {
this.context = Context.get();
}
@Override @Override
public void run() { public void run() {
Context.propagate(context);
// We now have enough connected peers to send the transaction. // 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 // This can be called immediately if we already have enough. Otherwise it'll be called from a peer
// thread. // thread.