Commit 9d1498c
committed
Merge dashpay#6625: fix: adjust quorum rotation data results in some edge cases, add tests
8b9a728 chore: drop redundant debug logging in tests (UdjinM6)
4f57afa chore: fix clang format (UdjinM6)
275ed8e test: a few trivial checks for `quorum rotationinfo` RPC (UdjinM6)
9c98f99 fix: off-by-one: do not ignore the base block which matches the requested block (UdjinM6)
422a695 fix: default to genesis block as the last base block (UdjinM6)
Pull request description:
## Issue being fixed or feature implemented
Before this PR you could get `baseBlockHash` as all 0s for some cases. Also, a known `baseBlockHash` that matched the `cycleHash` was ignored which means that results included quorum changes from an older known `baseBlockHash` till the `cycleHash`(which is the same as the `baseBlockHash` in question) i.e. these changes were already known to the requester.
## What was done?
Pls see individual commits
## How Has This Been Tested?
Run tests
## Breaking Changes
n/a, results should simply be a bit more meaningful and compact
## 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 8b9a728
Tree-SHA512: 88e5463ca0a40e3decb5cfcab948d7be2febc3583f7a24d455a5a93eb730e34c25246a1384fcfeea887a91348651e6250e226afa02b73f4403d8d10624a84d551 parent dfc1119 commit 9d1498c
File tree
2 files changed
+19
-3
lines changed- src/llmq
- test/functional
2 files changed
+19
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
396 | 395 | | |
397 | 396 | | |
398 | 397 | | |
399 | 398 | | |
| 399 | + | |
| 400 | + | |
400 | 401 | | |
401 | | - | |
402 | | - | |
| 402 | + | |
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
234 | 250 | | |
235 | 251 | | |
236 | 252 | | |
| |||
0 commit comments