Commit 1821cef
test: reuse single-member quorum helper in feature_llmq_singlenode
Address review feedback on mine_quorum_single_member:
- Drop the unused skip_maturity parameter; no caller sets it, so the
quorum is always matured.
- Mine a full DKG cycle per iteration instead of one block at a time.
A single-member DKG has no phase/connection waits, so a batched
generate reaches the commitment's mining window far more cheaply.
- Replace feature_llmq_singlenode.py's local mine_single_node_quorum
with the shared helper (and drop the now-unused time import).
- Remove quorumIndex (and the now-constant is_mature) from the log;
quorumIndex is meaningless for the non-rotating llmq_test quorum.
All assertions and test semantics are preserved. rpc_quorum.py,
rpc_verifychainlock.py, and feature_llmq_singlenode.py all pass.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent ea6794e commit 1821cef
2 files changed
Lines changed: 15 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
| |||
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 41 | | |
59 | 42 | | |
60 | 43 | | |
| |||
97 | 80 | | |
98 | 81 | | |
99 | 82 | | |
100 | | - | |
| 83 | + | |
101 | 84 | | |
102 | 85 | | |
103 | 86 | | |
| |||
158 | 141 | | |
159 | 142 | | |
160 | 143 | | |
161 | | - | |
| 144 | + | |
162 | 145 | | |
163 | 146 | | |
164 | 147 | | |
165 | 148 | | |
166 | | - | |
167 | | - | |
| 149 | + | |
| 150 | + | |
168 | 151 | | |
169 | 152 | | |
170 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2229 | 2229 | | |
2230 | 2230 | | |
2231 | 2231 | | |
2232 | | - | |
| 2232 | + | |
2233 | 2233 | | |
2234 | 2234 | | |
2235 | 2235 | | |
2236 | 2236 | | |
2237 | 2237 | | |
2238 | | - | |
2239 | | - | |
| 2238 | + | |
| 2239 | + | |
2240 | 2240 | | |
2241 | 2241 | | |
2242 | 2242 | | |
| |||
2249 | 2249 | | |
2250 | 2250 | | |
2251 | 2251 | | |
2252 | | - | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
2253 | 2255 | | |
2254 | 2256 | | |
2255 | | - | |
| 2257 | + | |
2256 | 2258 | | |
2257 | 2259 | | |
2258 | 2260 | | |
2259 | 2261 | | |
2260 | 2262 | | |
2261 | 2263 | | |
2262 | | - | |
2263 | | - | |
2264 | | - | |
| 2264 | + | |
| 2265 | + | |
2265 | 2266 | | |
2266 | | - | |
2267 | | - | |
2268 | | - | |
| 2267 | + | |
| 2268 | + | |
2269 | 2269 | | |
2270 | 2270 | | |
2271 | 2271 | | |
| |||
0 commit comments