Ignore other node's propose and vote message in round wal
other node's propose and vote message is ignored so step is not
recovered
voteList message is applied so round will be recovered
@@ -1088,6 +1088,9 @@ func (cs *consensus) applyRoundWAL() error {
if m.height() != cs.height {
continue
}
+ if !m.address().Equal(cs.c.Wallet().Address()) {
+ continue
+ }
cs.logger.Tracef("WAL: my proposal %v\n", m)
if m.round() < round || (m.round() == round && rstep <= stepPropose) {
round = m.round()
@@ -1097,6 +1100,9 @@ func (cs *consensus) applyRoundWAL() error {
if m.height() != cs.height {
continue
}
+ if !m.address().Equal(cs.c.Wallet().Address()) {
+ continue
+ }
cs.logger.Tracef("WAL: my vote %v\n", m)
index := cs.validators.IndexOf(m.address())
if index < 0 {
