mark peer as good if it contributed enough votes or block parts

Refs #1147
This commit is contained in:
Anton Kaliaev
2018-03-05 16:51:52 +04:00
parent b0d8f552c5
commit 714f885dac
3 changed files with 66 additions and 0 deletions

View File

@ -287,6 +287,8 @@ func NewNode(config *cfg.Config,
sw.AddReactor("PEX", pexReactor)
}
sw.SetAddrBook(addrBook)
// Filter peers by addr or pubkey with an ABCI query.
// If the query return code is OK, add peer.
// XXX: Query format subject to change