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:
parent
c9cfd15f7f
commit
6e46d75c61
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user