diff --git a/CHANGELOG.md b/CHANGELOG.md index 97c3dfb44..019b8e04d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ BREAKING CHANGES - [abci] Upgrade to [v0.11.0](https://github.com/tendermint/abci/blob/master/CHANGELOG.md#0110) +- [abci] Query path for filtering peers by node ID changed from + `p2p/filter/pubkey/` to `p2p/filter/id/` NOTE: this release does not break any blockchain data structures or protocols other than the ABCI messages between Tendermint and the application. diff --git a/docs/spec/consensus/abci.md b/docs/spec/consensus/abci.md index e6d865400..2669a78e1 100644 --- a/docs/spec/consensus/abci.md +++ b/docs/spec/consensus/abci.md @@ -107,7 +107,7 @@ using the following paths, with no additional data: - `/p2p/filter/addr/`, where `` denote the IP address and the port of the connection - - `p2p/filter/pubkey/`, where `` is the peer node ID (ie. the + - `p2p/filter/id/`, where `` is the peer node ID (ie. the pubkey.Address() for the peer's PubKey) If either of these queries return a non-zero ABCI code, Tendermint will refuse diff --git a/node/node.go b/node/node.go index a8b5c9b2f..efeb17ee0 100644 --- a/node/node.go +++ b/node/node.go @@ -302,7 +302,7 @@ func NewNode(config *cfg.Config, return nil }) sw.SetIDFilter(func(id p2p.ID) error { - resQuery, err := proxyApp.Query().QuerySync(abci.RequestQuery{Path: cmn.Fmt("/p2p/filter/pubkey/%s", id)}) + resQuery, err := proxyApp.Query().QuerySync(abci.RequestQuery{Path: cmn.Fmt("/p2p/filter/id/%s", id)}) if err != nil { return err }