-
Notifications
You must be signed in to change notification settings - Fork 219
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
add validator state #1344
base: uptime-tracking-base
Are you sure you want to change the base?
add validator state #1344
Conversation
go.mod
Outdated
@@ -5,7 +5,7 @@ go 1.21.12 | |||
require ( | |||
github.com/VictoriaMetrics/fastcache v1.12.1 | |||
github.com/antithesishq/antithesis-sdk-go v0.3.8 | |||
github.com/ava-labs/avalanchego v1.11.11 | |||
github.com/ava-labs/avalanchego v1.11.12-0.20240910093928-8c6a486205ce |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you link the modified avalanchego branch in the PR description?
Co-authored-by: Darioush Jalali <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]>
Changed the target branch to |
plugin/evm/validators/state_test.go
Outdated
IsActive: true, | ||
}, | ||
}, | ||
{ | ||
name: "invalid codec version", | ||
name: " ", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems this was modified unintentionally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uhh weird
plugin/evm/validators/state_test.go
Outdated
|
||
// write state, should reflect to DB | ||
require.NoError(state.WriteState()) | ||
require.True(db.Has(vID[:])) | ||
|
||
// set uptime | ||
newUpDuration := 2 * time.Minute | ||
newuptime := 2 * time.Minute |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: newUptime
?
Why this should be merged
Adds validator state that can persist validator information and implements
uptime.State
.How this was tested
Added UT
How is this documented
Comments in code