You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ibc-go, the delay_period field is processed as nanoseconds, but in ibc-rs, the delay_period is converted to and from seconds using Duration::from_secs and .as_secs().
Good catch! We knew it's in nanoseconds but when we changed the CLI parameter from nanoseconds to seconds we introduced the conversion errors.
Was curious as I was testing this a lot, so did a quick test with correct units and all looks good. Because we were consistent in our conversion mistakes, the delay introduced in packet relaying was correct (for both recv packets and timeouts). We were just preventing the on-chain validation to catch any cases we weren't.
Crate
ibc
Summary of Bug
In
ibc-go
, thedelay_period
field is processed as nanoseconds, but inibc-rs
, thedelay_period
is converted to and from seconds usingDuration::from_secs
and.as_secs()
.Example of erroneous conversion:
Acceptance Criteria
delay_period
inibc-rs
when converting to/fromRawMsgConnectionOpenTry
to use nanoseconds..as_seconds()
to display the result in seconds.For Admin Use
The text was updated successfully, but these errors were encountered: