TransactionBroadcast: Also consider confidence change events in the single peer case.
If connected to only one peer, it will be disconnected and reconnected after the broadcast, so we in fact will hear the inv from that peer.
@@ -141,8 +141,6 @@ public class TransactionBroadcast {
// a big effect.
List<Peer> peers = peerGroup.getConnectedPeers(); // snapshots
// Prepare to send the transaction by adding a listener that'll be called when confidence changes.
- // Only bother with this if we might actually hear back:
- if (minConnections > 1)
tx.getConfidence().addEventListener(new ConfidenceChange());
// Bitcoin Core sends an inv in this case and then lets the peer request the tx data. We just
// blast out the TX here for a couple of reasons. Firstly it's simpler: in the case where we have
