From cafd4666d9038148d8fafa83dcbf9324be6cc98c Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Fri, 25 Oct 2013 18:59:21 -0400 Subject: [PATCH] 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. --- sockets.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sockets.go b/sockets.go index b11a104..e6d57af 100644 --- a/sockets.go +++ b/sockets.go @@ -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() }