Skip to content

Commit 46b5113

Browse files
Merge #6174: fix: stop trying to sign pending txes when they are no longer non-locked
d8449ae fix: stop trying to sign pending txes when they are no longer non-locked (UdjinM6) Pull request description: ## Issue being fixed or feature implemented Masternodes keep trying to sign txes they received initially even after these txes were replaced by is/chain-locked txes later. ## What was done? Remove entries from `pendingRetryTxs` when txes are removed from `nonLockedTxs` set (as either already locked or as conflicted, doesn't matter). ## How Has This Been Tested? ## Breaking Changes ## Checklist: - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_ ACKs for top commit: PastaPastaPasta: utACK d8449ae knst: utACK d8449ae Tree-SHA512: 45983faad6d590d4e44fc195c77d73d216e3d0bebef963fe556688773c82c07a118916f56fde7f1213df19d4fb9b7d82d8fd51abecd8e6c2108c27d62d0426c1
2 parents 58f7032 + d8449ae commit 46b5113

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/llmq/instantsend.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,6 +1202,8 @@ void CInstantSendManager::RemoveNonLockedTx(const uint256& txid, bool retryChild
12021202
retryChildrenCount++;
12031203
}
12041204
}
1205+
// don't try to lock it anymore
1206+
WITH_LOCK(cs_pendingRetry, pendingRetryTxs.erase(txid));
12051207

12061208
if (info.tx) {
12071209
for (const auto& in : info.tx->vin) {

0 commit comments

Comments
 (0)