Commit 67683f3
committed
Merge #7293: fix: keep sending ISDLOCK invs to non-MN peers with watchquorums
f6bb02d fix: keep sending ISDLOCK invs to non-MN peers that want recsigs (Konstantin Akimov)
Pull request description:
## Issue being fixed or feature implemented
PR #6994 made masternodes skip ISDLOCK inv announcements to any peer with m_wants_recsigs set, on the premise that such peers can reconstruct the ISLOCK from the recsig.
It works for MN peers but it does not work for quorum observers running with -watchquorums: those nodes also opt in to recsigs via QSENDRECSIGS but they don't have a signer worker running, so they cannot reconstruct an ISDLOCK from a recsig and they still need the inv.
nodes[0] runs with -watchquorums and had progressively sent QSENDRECSIGS to all four MN peers; by the third call every MN saw nodes[0].m_wants_recsigs=true and skipped the inv to it.
## What was done?
The ISDLOCK is skipped now only on the peer being verified masternode. Move the policy from PushInv (called for every inv type) to the three sites that actually relay MSG_ISDLOCK and have CNode in scope.
## How Has This Been Tested?
Run functional test interface_dash_zmq.py multiple times.
This PR drops failure rate from 50% to 0.
## Breaking Changes
N/A
## Checklist:
- [x] 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
- [x] I have assigned this pull request to a milestone
ACKs for top commit:
PastaPastaPasta:
utACK f6bb02d
Tree-SHA512: 14be2cfaad6dd0cb359bedca9e65e176b3d52de109f1c9e606892ee284f8079860d01117d538efb19bcf695e5da0cae747f08dcb98c209624ca28d6cf7d1e34d1 file changed
Lines changed: 21 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1193 | 1193 | | |
1194 | 1194 | | |
1195 | 1195 | | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
1196 | 1206 | | |
1197 | 1207 | | |
1198 | 1208 | | |
| |||
1204 | 1214 | | |
1205 | 1215 | | |
1206 | 1216 | | |
1207 | | - | |
1208 | | - | |
1209 | | - | |
1210 | | - | |
1211 | | - | |
1212 | | - | |
1213 | | - | |
1214 | 1217 | | |
1215 | 1218 | | |
1216 | 1219 | | |
| |||
2541 | 2544 | | |
2542 | 2545 | | |
2543 | 2546 | | |
| 2547 | + | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
| 2551 | + | |
2544 | 2552 | | |
2545 | 2553 | | |
2546 | 2554 | | |
| |||
2566 | 2574 | | |
2567 | 2575 | | |
2568 | 2576 | | |
| 2577 | + | |
| 2578 | + | |
| 2579 | + | |
| 2580 | + | |
| 2581 | + | |
2569 | 2582 | | |
2570 | 2583 | | |
2571 | 2584 | | |
| |||
6348 | 6361 | | |
6349 | 6362 | | |
6350 | 6363 | | |
6351 | | - | |
6352 | | - | |
6353 | | - | |
| 6364 | + | |
6354 | 6365 | | |
6355 | 6366 | | |
6356 | 6367 | | |
| |||
0 commit comments