-
Notifications
You must be signed in to change notification settings - Fork 2
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
finality: sudo message for BeginBlock
#8
Conversation
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.
// UpdateParams updates the params. | ||
func (ms msgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, 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.
Nit: Shouldn't this belong to a different / independent PR?
Or this is needed to get the contracts addresses?
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.
It is necessary as eventually one might need to trigger gov prop to call this message in order to set up the Babylon contract addresses. It's not a big change -- most things about this message handler are copied from Babylon e.g., https://github.com/babylonchain/babylon/blob/2a7c91d6f1649912f14667d3a3ee6a2c1792c3d9/x/btccheckpoint/keeper/msg_server.go#L97-L114
CI failed due to config reasons. Will fix in separate PRs |
Closes #2
This PR provides sudo message
BeginBlock
for Babylon contracts. The sudo message will be sent to BTC staking contract upon eachBeginBlock
.To test, run
make test-e2e
. Note that the wasm files are generated on https://github.com/babylonchain/babylon-contract/pull/123