-
Notifications
You must be signed in to change notification settings - Fork 241
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
Problem: strange failure in sim test with sdk 0.46 #645
Comments
If we reset this commit( Simulating... block 22/50, operation 0/357. random unbonding entry index: 1
staking cancel bond amount: 2663067285, balance: 5485945019
index 0 entry: balance: "2397748260"
completion_time: "2103-10-03T03:17:50Z"
creation_height: 4
initial_balance: "2397748260"
index 1 entry: balance: "5485945019"
completion_time: "2103-10-03T03:17:50Z"
creation_height: 4
initial_balance: "5485945019"
actual unboding entry index: 0
skaing actual cancel amount: 2663067285, actual balance: 2397748260 we can find that we have tow |
Referring to the sdk v0.46 code , we find how for i, entry := range ubd.Entries {
if entry.CreationHeight == msg.CreationHeight {
unbondEntry = entry
unbondEntryIndex = int64(i)
break
}
} |
definitely, this logic is not accurate and could match with unintended |
open an issue on SDK? |
sure |
fixed in sdk. |
After upgrade to sdk 0.46, it's strange that this commit is necessary for the sim test to pass. Maybe there's some deeper issue in the SDK sim test itself.
The text was updated successfully, but these errors were encountered: