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:
parent
2e3f91549c
commit
cafd4666d9
1 changed files with 0 additions and 4 deletions
|
@ -389,10 +389,6 @@ func NtfnBlockConnected(r interface{}) {
|
||||||
for _, txid := range minedTxs {
|
for _, txid := range minedTxs {
|
||||||
delete(UnminedTxs.m, txid)
|
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()
|
UnminedTxs.Unlock()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue