Files
tendermint/CHANGELOG_PENDING.md
Anton Kaliaev 18d2c45c33 rpc: Fix response time grow over time (#3537)
* rpc: store validator info periodly

* increase ValidatorSetStoreInterval

also

- unexpose it
- add a comment
- refactor code
- add a benchmark, which shows that 100000 results in ~ 100ms to get 100
validators

* make the change non-breaking

* expand comment

* rename valSetStoreInterval to valSetCheckpointInterval

* change the panic msg

* add a test and changelog entry

* update changelog entry

* update changelog entry

* add a link to PR

* fix test

* Update CHANGELOG_PENDING.md

Co-Authored-By: melekes <anton.kalyaev@gmail.com>

* update comment

* use MaxInt64 func
2019-04-12 10:46:07 +02:00

944 B

v0.31.2

**

BREAKING CHANGES:

  • CLI/RPC/Config

  • Apps

  • Go API

  • Blockchain Protocol

  • P2P Protocol

FEATURES:

IMPROVEMENTS:

  • [p2p] #3463 Do not log "Can't add peer's address to addrbook" error for a private peer

BUG FIXES:

  • [state] #3438 Persist validators every 100000 blocks even if no changes to the set occurred (@guagualvcha). This
    1. Prevents possible DoS attack using /validators or /status RPC endpoints. Before response time was growing linearly with height if no changes were made to the validator set.
    2. Fixes performance degradation in ExecCommitBlock where we call LoadValidators for each Evidence in the block.
  • [p2p] #2716 Check if we're already connected to peer right before dialing it (@melekes)
  • [docs] #3514 Fix block.Header.Time description (@melekes)