3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-30 23:02:15 +00:00

Remove temp announcement listener in PeerGroup.broadcastTransaction once done.

This commit is contained in:
Mike Hearn 2012-10-08 18:25:36 +02:00
parent 425126689e
commit 7eae91ea47

View File

@ -946,6 +946,7 @@ public class PeerGroup {
// We're done! Run this outside of the peer group lock as setting the future may immediately
// invoke any listeners associated with it and it's simpler if the PeerGroup isn't locked.
log.info("broadcastTransaction: {} complete", pinnedTx.getHashAsString());
tx.getConfidence().removeEventListener(this);
future.set(pinnedTx);
}
}