Skip to content

Commit

Permalink
Merge dashpay#6174: fix: stop trying to sign pending txes when they a…
Browse files Browse the repository at this point in the history
…re 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
  • Loading branch information
PastaPastaPasta committed Aug 7, 2024
1 parent 300529f commit 840175e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/llmq/instantsend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1201,6 +1201,8 @@ void CInstantSendManager::RemoveNonLockedTx(const uint256& txid, bool retryChild
retryChildrenCount++;
}
}
// don't try to lock it anymore
WITH_LOCK(cs_pendingRetry, pendingRetryTxs.erase(txid));

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

0 comments on commit 840175e

Please sign in to comment.