Skip to content

Commit

Permalink
fix v-doge-vul-009 (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
abrahamcruise321 authored May 18, 2022
1 parent 9c8acff commit 85d438f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion consensus/ibft/ibft.go
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,8 @@ func (i *Ibft) runValidateState() {
i.state.addCommitted(msg)

default:
panic(fmt.Sprintf("BUG: %s", reflect.TypeOf(msg.Type)))
i.logger.Error("BUG: %s, validate state don't not handle type.msg: %d",
reflect.TypeOf(msg.Type), msg.Type)
}

if i.state.numPrepared() > i.state.NumValid() {
Expand Down

0 comments on commit 85d438f

Please sign in to comment.