Gaia-7001 Post-Mortem
The gaia-7001 testnet halted at block 24570 on Sunday, 7/23/2018 due to a panic in the SDK code. The bug was in the `tally` function of the governance module which was triggered during the tallying of a governance proposal. github.com cosmos/cosmos-sdk/blob/9f2b83cbe9e1b35b350703366b5e7f5806c5547e/x/gov/tally.go ``` package gov import ( sdk "github.com/cosmos/cosmos-sdk/types" ) // validatorGovInfo used for tallying type validatorGovInfo struct { Address sdk.AccAddress // sdk.AccAddress of the validator owner Power sdk.Rat // Power of a Validator DelegatorShares sdk.Rat // Total outstanding delegator shares Minus sdk.Rat // Minus of validator, used to compute validator's voting power Vote VoteOption // Vote of the validator } func tally(ctx sdk.Context, keeper Keeper, proposal Proposal) (passes bool, nonVoting []sdk.AccAddress) { results := make(map[VoteOption]sdk.Rat) results[OptionYes] = sdk.ZeroRat() results[OptionAbstain] = sdk.ZeroRat() results[OptionNo] = sdk.ZeroRat() ``` This file has been truncated. show original The stack trace of the panic can be found…
Excerpt (1196 of 1889 characters). Read the whole post on the forum ↗
Thanks for the report.