Browse Source

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

pull/1701/head
Ethan Buchman 6 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
[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
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
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)
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
})
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
}


Loading…
Cancel
Save