p2p/filter/pubkey -> p2p/filter/id

This commit is contained in:
Ethan Buchman 2018-06-06 16:13:51 -07:00
parent 6b8613b3e7
commit 89925501f3
3 changed files with 4 additions and 2 deletions

View File

@ -8,6 +8,8 @@ BREAKING CHANGES
- [abci] Upgrade to - [abci] Upgrade to
[v0.11.0](https://github.com/tendermint/abci/blob/master/CHANGELOG.md#0110) [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/<id>` to `p2p/filter/id/<id>`
NOTE: this release does not break any blockchain data structures or NOTE: this release does not break any blockchain data structures or
protocols other than the ABCI messages between Tendermint and the application. protocols other than the ABCI messages between Tendermint and the application.

View File

@ -107,7 +107,7 @@ using the following paths, with no additional data:
- `/p2p/filter/addr/<IP:PORT>`, where `<IP:PORT>` denote the IP address and - `/p2p/filter/addr/<IP:PORT>`, where `<IP:PORT>` denote the IP address and
the port of the connection the port of the connection
- `p2p/filter/pubkey/<ID>`, where `<ID>` is the peer node ID (ie. the - `p2p/filter/id/<ID>`, where `<ID>` is the peer node ID (ie. the
pubkey.Address() for the peer's PubKey) pubkey.Address() for the peer's PubKey)
If either of these queries return a non-zero ABCI code, Tendermint will refuse If either of these queries return a non-zero ABCI code, Tendermint will refuse

View File

@ -302,7 +302,7 @@ func NewNode(config *cfg.Config,
return nil return nil
}) })
sw.SetIDFilter(func(id p2p.ID) error { 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 { if err != nil {
return err return err
} }