mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 21:01:21 +00:00
update for new abci int types
This commit is contained in:
12
node/node.go
12
node/node.go
@ -256,20 +256,20 @@ func NewNode(config *cfg.Config,
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if resQuery.Code.IsOK() {
|
||||
return nil
|
||||
if resQuery.IsErr() {
|
||||
return resQuery
|
||||
}
|
||||
return errors.New(resQuery.Code.String())
|
||||
return nil
|
||||
})
|
||||
sw.SetPubKeyFilter(func(pubkey crypto.PubKeyEd25519) error {
|
||||
resQuery, err := proxyApp.Query().QuerySync(abci.RequestQuery{Path: cmn.Fmt("/p2p/filter/pubkey/%X", pubkey.Bytes())})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if resQuery.Code.IsOK() {
|
||||
return nil
|
||||
if resQuery.IsErr() {
|
||||
return resQuery
|
||||
}
|
||||
return errors.New(resQuery.Code.String())
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user