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
To simulate Canto correctly, need to customize sdk simulation package and ibc-go.
Currently we are using cosmos-sdk and ibc-go in b-harvest org to make sim-testing work, but will internalize it and replace current temp dependencies on b-harvest.
The followings are the reason why we customize simulation package and ibc-go.
sdk
staking module's operation issue
operations assume that the account running operation is one of the simAccs, but delegation in lsm triggered by module itself (chunk.DerivedAddress) so it always return err. simulation is terminated if error is returned while running operation, so we cannot run simulation with native cosmos-sdk.
Canto uses 1e18 as power reduction but cosmos-sdk uses 1e6.
initialStake which is used to generate a random amount of initial stake is defined as int64.
To simulate Canto correctly, need to customize sdk simulation package and ibc-go.
Currently we are using cosmos-sdk and ibc-go in b-harvest org to make sim-testing work, but will internalize it and replace current temp dependencies on b-harvest.
The followings are the reason why we customize simulation package and ibc-go.
sdk
1e18
as power reduction but cosmos-sdk uses1e6
.n * 1e18
).ibc-go
Code Diffs
The text was updated successfully, but these errors were encountered: