config: reduce timeouts during test

This commit is contained in:
Ethan Buchman
2016-09-10 15:16:23 -04:00
parent 035ca7ef61
commit bfa690b6f7
2 changed files with 8 additions and 7 deletions

View File

@ -123,6 +123,7 @@ func NewNode(config cfg.Config, privValidator *types.PrivValidator, newTMSPClien
// if the query return code is OK, add peer
// XXX: query format subject to change
if config.GetBool("filter_peers") {
// NOTE: addr is ip:port
sw.SetAddrFilter(func(addr net.Addr) error {
res := proxyApp.Query().QuerySync([]byte(Fmt("p2p/filter/addr/%s", addr.String())))
if res.IsOK() {