You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #7241: test: fix intermittent IS lock timeouts by syncing mempools before waiting
d8ac781 test: fix additional IS lock sync sites that passed nodes=[self.nodes[0]] (UdjinM6)
c79c2d9 refactor: improve is-waiting helper by including mempool sync bump of mocktime (Konstantin Akimov)
a0e4260 test: address review — fix additional IS lock sync sites and remove dead code (UdjinM6)
62d47f7 test: fix intermittent IS lock timeouts by syncing mempools before waiting (UdjinM6)
Pull request description:
## Issue being fixed or feature implemented
When mocktime is set, `NodeClock::now()` returns a frozen value. After `bump_mocktime()`, the trickle relay timer fires once, then `m_next_inv_send_time` is set ahead of the frozen clock and never fires again. If a TX inv misses that single relay window, it stays stuck in the sender's mempool indefinitely — regardless of real-time elapsed.
## What was done?
Add `sync_mempools()` after `bump_mocktime()` in all test paths that send a TX and immediately wait for an IS lock. This ensures all nodes (especially MNs that need to sign) have the TX before polling begins.
## How Has This Been Tested?
Run tests, should no longer fail in these parts
## Breaking Changes
n/a
## Checklist:
- [ ] I have performed a self-review of my own code
- [ ] 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
- [ ] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_
ACKs for top commit:
PastaPastaPasta:
utACK d8ac781
knst:
utACK d8ac781
Tree-SHA512: 44201c2afcbea4c0a61e96ad2217c8beae9bc54c80c5c240c74a47af4d533ccf87ec0e2447cc45d9470ec818dcd56595884c686c28f2751ff0ac24c5ca926081
0 commit comments