Browse Source

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

pull/1701/head
Ethan Buchman 7 years ago
parent
commit
89925501f3
3 changed files with 4 additions and 2 deletions
  1. +2
    -0
      CHANGELOG.md
  2. +1
    -1
      docs/spec/consensus/abci.md
  3. +1
    -1
      node/node.go

+ 2
- 0
CHANGELOG.md 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.


+ 1
- 1
docs/spec/consensus/abci.md 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


+ 1
- 1
node/node.go 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
} }


Loading…
Cancel
Save