-
Notifications
You must be signed in to change notification settings - Fork 40
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
adr-37 parameters for btc light client ranges #310
adr-37 parameters for btc light client ranges #310
Conversation
…de data, from BtcStakingParamStr to BtcStakingParamsStr and removed string quotes from int types
|
||
for _, p := range params { | ||
// using set Params here makes sure the parameters in the upgrade string are consistent | ||
err = k.SetParams(ctx, p) |
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.
this test checks that the params in the upgrade are consistent by passing through the AddNewPair
but during the upgrade it is overwritten the entire set of params
@KonradStaniec
"delegation_creation_base_gas_fee": 1000, | ||
"allow_list_expiration_height": 0 | ||
}` | ||
const BtcStakingParamsStr = `[ |
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.
basically just copy&paste 3 times to check if all of those were inserted with a different btc_activation_height
@@ -1,7 +1,7 @@ | |||
package v1 | |||
|
|||
type UpgradeDataString struct { | |||
BtcStakingParamStr string | |||
BtcStakingParamsStr string |
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.
@babylon-devops modified this to BtcStakingParamStr
=> BtcStakingParamsStr
since now it is a slice of parameters
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.
LGTM!
}) | ||
} | ||
|
||
func (m *HeightToVersionMap) AddPair(newPair *HeightVersionPair) error { |
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.
Better to add a doc string here
// QueryParamsByBTCHeightResponse is response type for the Query/QueryParamsByBTCHeightResponse RPC method. | ||
message QueryParamsByBTCHeightResponse { | ||
// params holds all the parameters of this module. | ||
Params params = 1 [(gogoproto.nullable) = false]; |
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.
would it be helpful to also have version number here?
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.
probably 👍 good idea
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.
great work! lgtm
No description provided.