-
Notifications
You must be signed in to change notification settings - Fork 773
ACP-77: Current validators API for SoV #3404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 250 commits
Commits
Show all changes
267 commits
Select commit
Hold shift + click to select a range
7a6f7eb
remove todo comment
ceyonur 64dec9c
Merge branch 'master' into remove-subnetid-uptime-manager
ceyonur 75250de
small refactor
ceyonur 33eb562
Merge branch 'master' into remove-subnetid-uptime-manager
ceyonur cba7a50
remove unused err
ceyonur b4955d6
remove subnet connector mock
ceyonur fb21285
add started tracking
ceyonur 5412f16
Merge branch 'remove-subnetid-uptime-manager' into refactor-uptime-ma…
ceyonur 477c3eb
do not return err
ceyonur 84898f4
Merge branch 'refactor-uptime-manager' of github.com:ava-labs/avalanc…
ceyonur 3c9096e
Merge branch 'master' into remove-subnetid-uptime-manager
ceyonur 8c6a486
Merge branch 'remove-subnetid-uptime-manager' into refactor-uptime-ma…
ceyonur 1b22842
WIP Add Expiry Replay Protection
StephenButtolph ad83805
rename
StephenButtolph 7820c17
wip
StephenButtolph 20ed013
Replace iterator equality helper
StephenButtolph fcb388c
merged
StephenButtolph a02b51c
Finish diff implementation
StephenButtolph daf45a3
Merge branch 'master' into implement-acp-77-add-validator-replay-prot…
StephenButtolph 7bda9b1
Finish state implementation
StephenButtolph f24ca9f
lint
StephenButtolph 463ce02
Implement iterator deduplicator
StephenButtolph 4ce1977
Merge branch 'master' into remove-subnetid-uptime-manager
ceyonur 3cc413a
Reuse Filter
StephenButtolph 4de908e
Merge branch 'master' into implement-deduplication-iterator
StephenButtolph 09f71e6
merged
StephenButtolph 114beeb
nit
StephenButtolph 0cd4f89
Merge branch 'master' into implement-acp-77-add-validator-replay-prot…
StephenButtolph 57810a0
Add comments
StephenButtolph e89671a
otherExpiries -> unexpectedExpiries
StephenButtolph 72f972c
restructure test
StephenButtolph e8eea6f
reduce diff
StephenButtolph d67408d
nit
StephenButtolph 8571163
Merge branch 'master' into implement-acp-77-sov-validators-state
StephenButtolph 6e457fa
Implement acp-77 state diff
StephenButtolph 86754d0
Fix apply reordering
StephenButtolph c68afec
Implement acp-77 state diff without historical diffs
StephenButtolph 09faa6b
nit
StephenButtolph 51937f7
nit
StephenButtolph 88a310e
Add num SoV validators on a subnet
StephenButtolph b11ff7e
fix tests
StephenButtolph 6c9e0e0
Merge branch 'master' into implement-acp-77-sov-validators-state
StephenButtolph b028ada
write historical diffs
StephenButtolph 42d61ef
Implement and test state diffs
StephenButtolph 8ef4fcf
Store weights rather than counts
StephenButtolph e2045e2
load sov validators on startup
StephenButtolph 863c92e
Merge branch 'master' into remove-subnetid-uptime-manager
ceyonur 1753950
Merge branch 'remove-subnetid-uptime-manager' into refactor-uptime-ma…
ceyonur e0beab1
update in-memory validator sets
StephenButtolph 410bcda
remove comment
StephenButtolph 149e21e
Add SoV excess
StephenButtolph 6c0945b
Merge branch 'master' into implement-acp-77-sov-validators-state
StephenButtolph a441d62
Merge branch 'master' into remove-subnetid-uptime-manager
ceyonur a4fd79d
Merge branch 'remove-subnetid-uptime-manager' into refactor-uptime-ma…
ceyonur 9c2c211
add current validators api
ceyonur 554a9e7
Merge branch 'master' into test-only-current-validators-api
ceyonur 29e7797
regen mock
ceyonur 7777ba6
Merge branch 'refactor-uptime-manager' into test-only-current-validat…
ceyonur a754e44
Merge branch 'refactor-uptime-manager' into test-only-current-validat…
ceyonur 09d63ce
populate validationID
ceyonur 3adf6d4
Merge branch 'test-only-current-validators-api' of github.com:ava-lab…
ceyonur 07af6b2
add ctx
ceyonur fbc5ce1
Merge branch 'master' into implement-acp-77-sov-validators-state
StephenButtolph cfc2790
Merge branch 'remove-subnetid-uptime-manager' into implement-acp-77-s…
StephenButtolph 449994a
write subnet public key diffs
StephenButtolph 744f4c7
merged
StephenButtolph d9108a7
mocks
StephenButtolph 98020f1
Bound GetNextStakerTime
StephenButtolph cc9a086
fix test
StephenButtolph a3f0d94
add comment
StephenButtolph de81518
Add tests
StephenButtolph c062890
Merge branch 'bound-next-staker-time' into implement-acp-77-sov-valid…
StephenButtolph b68ed8a
merged
StephenButtolph 8fe987c
ACP-77: Update warp messages to follow new specification
StephenButtolph 30efc6d
ACP-77: Add warp message helpers to follow new specification
StephenButtolph 903f7c3
migrate x/sync to p2p
joshua-kim 34fe3a6
nit
joshua-kim b9d5507
add acp-118 implementation
joshua-kim 99f0cde
undo diff
joshua-kim 00fc8d1
nit
joshua-kim c08a1d7
undo
joshua-kim 9d07a45
nit
joshua-kim f91e0a8
nit
joshua-kim a35b090
add context
joshua-kim dd7029c
fix
joshua-kim 8978452
rename attestor -> verifier
joshua-kim a383209
nit
joshua-kim 8b52ead
nit
joshua-kim 3859d98
Merge branch 'master' into implement-acp-77-update-warp-messages
StephenButtolph 0462fda
Merge branch 'acp-118-handler' into implement-acp-77-temp.0
StephenButtolph 5a362bd
Merge branch 'implement-acp-77-temp.0' into implement-acp-77-sov-vali…
StephenButtolph a3cc8e8
merged
StephenButtolph ddb9ba6
Add deactivation owner
StephenButtolph 556f1eb
fix tests
StephenButtolph 891bca4
Store conversionID
StephenButtolph a33e0df
Include validationID
StephenButtolph 8fee2b4
Merge branch 'master' into implement-acp-77-sov-validators-state
StephenButtolph 0d3d3b9
Merge branch 'master' into implement-acp-77-sov-validators-state
StephenButtolph 01c9072
remove unexpected file
StephenButtolph 01de954
Merge branch 'master' into implement-acp-77-sov-validators-state
StephenButtolph 5285749
Merge branch 'master' into test-only-current-validators-api
ceyonur 1ca7524
Merge branch 'master' into implement-acp-77-sov-validators-state
StephenButtolph 237f590
Allow xsvm to sign arbitrary warp messages
StephenButtolph bc53046
Merge branch 'implement-acp-77-allow-xsvm-signing' into implement-acp…
StephenButtolph 127a3fa
nit
StephenButtolph 1986804
nit cleanup
StephenButtolph f16a904
Merge branch 'master' into test-only-current-validators-api
ceyonur 8279972
Remove unexpected block unwrapping
StephenButtolph 3d5d6c1
Merge branch 'fix-block-passing' into implement-acp-77-sov-validators…
StephenButtolph d7ba4fb
Merge branch 'master' into implement-acp-77-sov-validators-state
StephenButtolph d550c97
Merge branch 'master' into implement-acp-77-sov-validators-state
StephenButtolph a2f59c8
Merge branch 'master' into test-only-current-validators-api
ceyonur 9226649
Merge branch 'master' into implement-acp-77-sov-validators-state
StephenButtolph a94bfe3
Merge branch 'implement-acp-77-sov-validators-state' into test-only-c…
ceyonur 83cc0dc
merged
StephenButtolph 702639a
ACP-77: Add ConversionID to state
StephenButtolph 4b562f0
nit
StephenButtolph 7f3dd5e
nit
StephenButtolph f40c1b3
nit
StephenButtolph f69ec51
merged
StephenButtolph 51f009b
nit
StephenButtolph 36714ed
Merge branch 'implement-acp-77-add-conversion-id' into implement-acp-…
StephenButtolph 05a7b13
nit
StephenButtolph 09c5126
Merge branch 'implement-acp-77-add-conversion-id' into implement-acp-…
StephenButtolph a1db89e
nit
StephenButtolph 2e7595c
Merge branch 'implement-acp-77-add-conversion-id' into implement-acp-…
StephenButtolph 575b36a
remove unneeded assignment
StephenButtolph d2d0f69
update comment
StephenButtolph b6b6515
update comment
StephenButtolph 6ffcd1b
update doc
StephenButtolph ad00180
Address comments
StephenButtolph f1b07d2
nit
StephenButtolph 7fb99c0
fix unit tests
StephenButtolph 65b5d50
Merge branch 'implement-acp-77-add-conversion-id' into implement-acp-…
StephenButtolph 8791e78
merged
StephenButtolph f31cfc6
Add SoV Excess to P-chain state
StephenButtolph fe9a76d
merged
StephenButtolph 58d5b8d
Populate BLS key diffs for subnet validators
StephenButtolph 273fbbe
Populate BLS key diffs for subnet validators
StephenButtolph 290ef97
Update mocks
StephenButtolph 9155e1f
Fix tests
StephenButtolph cadf8f7
Merge branch 'master' into populate-subnet-public-key-diffs
StephenButtolph 803d0c4
nit
StephenButtolph 76f4eee
Merge branch 'populate-subnet-public-key-diffs' of github.com:ava-lab…
StephenButtolph a2c7773
Update test and populate public keys during startup
StephenButtolph 95c42a1
comment
StephenButtolph 3d7bd81
Merge branch 'master' into populate-subnet-public-key-diffs
StephenButtolph bbc395b
merged
StephenButtolph 3a03597
merged
StephenButtolph 21cdc32
Update P-chain state staker tests
StephenButtolph 845f1d2
merged
StephenButtolph 91a7cd7
fix test
StephenButtolph df02f3c
Merge branch 'update-state-staker-tests' into populate-subnet-public-…
StephenButtolph c848fee
fix test
StephenButtolph 79c9b40
nit
StephenButtolph d8819fc
Merge branch 'master' into update-state-staker-tests
StephenButtolph 667002e
Merge branch 'update-state-staker-tests' into populate-subnet-public-…
StephenButtolph 31be1e2
merged
StephenButtolph 8f0a080
merged
StephenButtolph d482de8
Merge branch 'populate-subnet-public-key-diffs' into implement-acp-77…
StephenButtolph e8b21ec
Verify no SoV + legacy overlap
StephenButtolph 7f517c7
Fix legacy validator migration
StephenButtolph 7d0d7e5
merged
StephenButtolph 08bd9e3
ACP-77: Add subnetIDNodeID struct
StephenButtolph 78c1c3d
nit
StephenButtolph 6547c6d
Merge branch 'master' into implement-acp-77-add-subnetid-nodeid
StephenButtolph 38ee164
Merge branch 'implement-acp-77-add-subnetid-nodeid' into implement-ac…
StephenButtolph d2137ef
fix merge
StephenButtolph 5845d11
Split writeCurrentStakers into multiple functions
StephenButtolph 6c3116a
merged
StephenButtolph d0d1602
reduce diff
StephenButtolph d397375
reduce diff
StephenButtolph 5f8a09c
reduce diff
StephenButtolph 3e9dc01
reduce diff
StephenButtolph da3a726
reduce diff
StephenButtolph 8483ced
cleanup
StephenButtolph 0507ce7
nit
StephenButtolph 0022a65
Merge branch 'refactor-write-current-stakers' into implement-acp-77-s…
StephenButtolph 8bbeee6
Add comment
StephenButtolph 08dd776
comment
StephenButtolph 255b0bf
nit
StephenButtolph 3bc547d
reduce diff
StephenButtolph bff468d
Merge branch 'master' into refactor-write-current-stakers
StephenButtolph 99f3c97
Merge branch 'refactor-write-current-stakers' into implement-acp-77-s…
StephenButtolph df4ca37
Merge branch 'master' into test-only-current-validators-api
ceyonur 3dd5317
add L1 validators to GetCurrentValidatorSet
ceyonur 50af053
Merge branch 'test-only-current-validators-api' of github.com:ava-lab…
ceyonur 07ae8ed
Merge branch 'implement-acp-77-sov-validators-state' into test-only-c…
ceyonur e05aa37
cosmetic fix
ceyonur 7cf1668
merged
StephenButtolph 41f78f0
nit
StephenButtolph 29cd6ba
nit
StephenButtolph 8dfcbb1
Fix initValidatorSets
StephenButtolph ef29548
nit
StephenButtolph a77fb3c
test subnetIDNodeIDDB
StephenButtolph ce05dc8
fix comments
StephenButtolph 3d04cef
nit
StephenButtolph dc35645
nit
StephenButtolph c299182
remove faulty test
ceyonur d472a9f
Reduce diff
StephenButtolph 34ba29b
add comment
StephenButtolph f5d523d
remove IsL1 logic
ceyonur d0a947d
reviews
ceyonur 61cace3
add new GetCurrentValidatorsSet test
ceyonur 83a3fbf
Merge branch 'implement-acp-77-sov-validators-state' into test-only-c…
ceyonur 97029aa
reduce diff
StephenButtolph dbeee70
Add NumSubnets to the validator manager interface
StephenButtolph 729ded5
merged
StephenButtolph 3621e53
add comment
StephenButtolph de2be9f
merged
StephenButtolph 92a2277
Delete empty entries
StephenButtolph 1bb8132
test IsSoV field
ceyonur 11cc7e0
Merge branch 'test-only-current-validators-api' of github.com:ava-lab…
ceyonur 6375aa2
simplify state futher
StephenButtolph aedff15
nit
StephenButtolph 1ac030a
nit
StephenButtolph 00a3ee6
remove notfound special handling
ceyonur 9e0d7d5
Add caching
StephenButtolph 9993b05
nit
StephenButtolph 547d426
nit
StephenButtolph 6bcc0ea
Add TODOs
StephenButtolph 6065604
Merge branch 'master' into implement-acp-77-sov-validators-state
StephenButtolph a7792c7
Add config changes to readme
StephenButtolph 39b961b
Merge branch 'implement-acp-77-sov-validators-state' of github.com:av…
StephenButtolph 4723c46
Improve doc for PutSubnetOnlyValidator
StephenButtolph 46c4889
Merge branch 'master' into implement-acp-77-sov-validators-state
StephenButtolph a576cd1
merged
StephenButtolph f1ca6e6
Add test that decreases weight
StephenButtolph 71f88e8
Fix regression
StephenButtolph c2ffd17
nit
StephenButtolph 5dd0fda
Merge branch 'implement-acp-77-sov-validators-state' into test-only-c…
ceyonur 0b7a136
update releases md
ceyonur ea1fc78
Merge branch 'master' into test-only-current-validators-api
ceyonur b3848b9
remove TODO
ceyonur 0ec15bf
Merge branch 'master' into test-only-current-validators-api
ceyonur 26a8fea
reviews
ceyonur 9a02db3
use inactive case
ceyonur 292a744
Merge branch 'test-only-current-validators-api' of github.com:ava-lab…
ceyonur ac138ad
Merge branch 'master' into test-only-current-validators-api
ceyonur 5ab910f
nits
ceyonur a2eba3f
merge proto definitions
ceyonur 9a6d542
Merge branch 'master' into test-only-current-validators-api
ceyonur 9e0c343
regen proto
ceyonur d7552ad
Merge branch 'test-only-current-validators-api' of github.com:ava-lab…
ceyonur 79f77e6
add fill validationID field
ceyonur a47c606
revert irrelevant change
ceyonur 7853e6b
Update proto/validatorstate/validator_state.proto
ceyonur c3a332e
Update vms/platformvm/validators/manager.go
ceyonur 4792a9f
regen protobuf
ceyonur 66739ff
remove comment
ceyonur File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.