-
Notifications
You must be signed in to change notification settings - Fork 329
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
Set default trusting period to be 2/3 of unbonding period for Cosmos chains #1392
Conversation
@@ -322,8 +318,7 @@ pub struct ChainConfig { | |||
pub max_tx_size: MaxTxSize, | |||
#[serde(default = "default::clock_drift", with = "humantime_serde")] | |||
pub clock_drift: Duration, | |||
#[serde(default = "default::trusting_period", with = "humantime_serde")] |
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.
Removing the serde(with)
attribute means we cannot express the trusting period as a human readable string, eg. 14days
. Let's find a way to re-enable it :)
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.
Done! Thanks for reviewing, @romac!
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.
🌼
Closes: #1133
Description
Set config trusting period to be 2/3 of unbonding period if not specified for Cosmos chains.
This is done where the
ChainEndpoint
impl for chains exists because we aren't sure if a chain is a Cosmos SDK chain while parsing the config.For contributor use:
unclog
.docs/
) and code comments.Files changed
in the Github PR explorer.