mirror of https://github.com/poanetwork/quorum.git
fixing the bug, where we were adding roundchange message and not preparedRound message to preparedMessages roundchangeset
This commit is contained in:
parent
240c69670f
commit
614e3d5b94
|
@ -214,12 +214,7 @@ func (rcs *roundChangeSet) Add(r *big.Int, msg *message, preparedRound *big.Int,
|
|||
return err
|
||||
}
|
||||
|
||||
if rcs.preparedMessages[round] == nil {
|
||||
rcs.preparedMessages[round] = newMessageSet(rcs.validatorSet)
|
||||
}
|
||||
if err := rcs.preparedMessages[round].Add(msg); err != nil {
|
||||
return err
|
||||
}
|
||||
rcs.preparedMessages[round] = preparedMessages
|
||||
|
||||
if rcs.preparedRounds == nil {
|
||||
rcs.preparedRounds = make(map[uint64]*big.Int)
|
||||
|
|
Loading…
Reference in New Issue