Skip to content

Using a keccak-seed permutation for the submission order#1108

Merged
0xfornax merged 1 commit into
masterfrom
fix-index-selection
May 27, 2026
Merged

Using a keccak-seed permutation for the submission order#1108
0xfornax merged 1 commit into
masterfrom
fix-index-selection

Conversation

@0xfornax
Copy link
Copy Markdown
Member

@0xfornax 0xfornax commented May 27, 2026

This PR fixes the case where an absent member would penalize the next one as the previous logic would always have a single step on the same order (just changing the starting index).
With 10 members the issue was worse as it would always start the cycle with the same members (0, 2, 4, 6, 8)

…ase where an absent member would penalize the next one
@0xfornax 0xfornax force-pushed the fix-index-selection branch from fbb5fb1 to 73a97f1 Compare May 27, 2026 03:48
@github-actions
Copy link
Copy Markdown

Coverage Report

@github-actions
Copy link
Copy Markdown

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/rocket-pool/smartnode/rocketpool/watchtower 0.51% (+0.08%) 👍

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/rocket-pool/smartnode/rocketpool/watchtower/submit-rpl-price.go 0.30% (+0.30%) 7384 (+169) 22 (+22) 7362 (+147) 👍

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/rocket-pool/smartnode/rocketpool/watchtower/submit-rpl-price_test.go

@0xfornax 0xfornax merged commit 5816be8 into master May 27, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants