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.
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
feat!: introduce epochs #1660
feat!: introduce epochs #1660
Changes from 27 commits
01daa3c
1ab7c20
efe8cb1
a5c1d4e
c03587c
6c39a2f
ddae681
c9b1b3e
e0861e2
d6cd207
d144c39
44d13cd
076ec8b
a56b6e0
36afb40
481fd88
35385dd
27290f6
c707c54
cf8bdb8
ead0873
88081cd
f6397ad
bee8c10
abb4abc
30f2061
e986692
8aa1dc9
16958bc
513a75d
2208cd4
914840c
791e582
85a52b7
f909e1a
d683b5a
44b9eb1
538eee3
294aacb
31b7416
ba2ed34
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Why is this
bytes
and notgoogle.protobuf.Any
as in the SDK https://github.com/cosmos/cosmos-sdk/blob/d1b5b0c5ae2c51206cc1849e09e4d59986742cc3/proto/cosmos/staking/v1beta1/staking.proto#L98? Orstring
as inMsgAssignConsumerKey
?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.
Changed to:
similarly to how a public key is declared in
message ValidatorConsumerPubKey
. This actually simplified things a lot because we do not have to marshal and unmarshal all the time.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.
Let's just make sure it works with multisig keys -- see https://github.com/cosmos/interchain-security/releases/tag/v1.1.0-multiden for more details.
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.
The provided link points to an issue about the type of the public key in the
MsgAssignConsumerKey
transaction. In our caseConsumerValidator
s are only set internally so I don't see this being an issue. Also, note that theMsgOptIn
message gets the consumer public key as astring
similarly toMsgAssignConsumerKey
.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.
Later calls to
waitBlocks
for 1 block have a timeout of 30 seconds, so for 3 blocks I'm adding a 90 seconds time out 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.
Why do we have to wait for 3 blocks when the epoch param is set to 2 blocks?
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.
Good catch. Changed
blocks_per_epoch
to 3.