3
0
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:
Mike Hearn 2012-07-22 01:50:09 +02:00
parent 5bae8ffe6c
commit 915a878a13

View File

@ -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;
}