StopPeerForError in blockchain and consensus

This commit is contained in:
Ethan Buchman
2018-01-21 13:32:04 -05:00
parent 813bb6af96
commit ee674f919f
9 changed files with 40 additions and 30 deletions

View File

@ -190,11 +190,10 @@ func execBlockOnProxyApp(logger log.Logger, proxyAppConn proxy.AppConnConsensus,
}
}
// TODO: determine which validators were byzantine
byzantineVals := make([]*abci.Evidence, len(block.Evidence.Evidence))
for i, ev := range block.Evidence.Evidence {
byzantineVals[i] = &abci.Evidence{
PubKey: ev.Address(), // XXX
PubKey: ev.Address(), // XXX/TODO
Height: ev.Height(),
}
}