Don't attempt tx resend if unmined in a new block.

Any and all resending should be handled directly by btcd, and btcd
ignores any duplicate transactions when adding to mempool anyways.  A
set of unmined txs is still kept and send to btcd in case of btcd
restarting and losing wallet transactions from its mempool.
This commit is contained in:
Josh Rickmar 2013-10-25 18:59:21 -04:00
parent 2e3f91549c
commit cafd4666d9

View file

@ -389,10 +389,6 @@ func NtfnBlockConnected(r interface{}) {
for _, txid := range minedTxs {
delete(UnminedTxs.m, txid)
}
// Resend any remaining transactions still left in pool. These are
// transactions that have not yet been mined into a block.
resendUnminedTxs()
UnminedTxs.Unlock()
}