-
Notifications
You must be signed in to change notification settings - Fork 79
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
Improve change weight #2545
Improve change weight #2545
Conversation
Can be made in a separate PR but we should have test case for this in e2e |
sdk/validatormanager/helpers.go
Outdated
@@ -0,0 +1,88 @@ | |||
// Copyright (C) 2023, Ava Labs, Inc. All rights reserved. |
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.
I was looking into the similar thing and I think these functions should be not part of validatormanager
sdk pkg, but new validator
sdk as this pkg is about validatormanager smart contract
cmd/blockchaincmd/change_weight.go
Outdated
} | ||
var remainingBalanceOwnerAddr, disableOwnerAddr string | ||
hrp := key.GetHRP(network.ID) | ||
if len(vdrInfo.RemainingBalanceOwner.Addrs) > 0 { |
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.
should we check if vdrInfo.RemainingBalanceOwner
is not nil
to avoid possible crash
ref: #2556 - create separate issue for Network model deprecation |
Why this should be merged
How this works
How this was tested
How is this documented