mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 07:12:17 +00:00
Also inform the wallet in the single peer case in broadcastTransaction.
This commit is contained in:
parent
5bae8ffe6c
commit
915a878a13
@ -853,6 +853,16 @@ public class PeerGroup {
|
||||
// assume we're done, at that point. This happens when we're not given any peer discovery source and
|
||||
// the user just calls connectTo() once.
|
||||
if (maxConnections == 1) {
|
||||
synchronized (PeerGroup.this) {
|
||||
for (Wallet wallet : wallets) {
|
||||
try {
|
||||
wallet.receivePending(pinnedTx);
|
||||
} catch (Throwable t) {
|
||||
future.setException(t);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
future.set(pinnedTx);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user