You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.1 KiB

  1. # Upgrading Tendermint Core
  2. This guide provides steps to be followed when you upgrade your applications to
  3. a newer version of Tendermint Core.
  4. ## v0.24.0
  5. New 0.24.0 release contains a lot of changes to the state and types. It's not
  6. compatible to the old versions and there is no straight forward way to update
  7. old data to be compatible with the new version.
  8. To reset the state do:
  9. ```
  10. $ tendermint unsafe_reset_all
  11. ```
  12. Here we summarize some other notable changes to be mindful of.
  13. ### Config changes
  14. `p2p.max_num_peers` was removed in favor of `p2p.max_num_inbound_peers` and
  15. `p2p.max_num_outbound_peers`.
  16. ```
  17. # Maximum number of inbound peers
  18. max_num_inbound_peers = 40
  19. # Maximum number of outbound peers to connect to, excluding persistent peers
  20. max_num_outbound_peers = 10
  21. ```
  22. As you can see, the default ratio of inbound/outbound peers is 4/1. The reason
  23. is we want it to be easier for new nodes to connect to the network. You can
  24. tweak these parameters to alter the network topology.
  25. ### RPC Changes
  26. The result of `/commit` used to contain `header` and `commit` fields at the top level. These are now contained under the `signed_header` field.
  27. ### ABCI Changes
  28. The header has been upgraded and contains new fields, but none of the existing
  29. fields were changed, except their order.
  30. The `Validator` type was split into two, one containing an `Address` and one
  31. containing a `PubKey`. When processing `RequestBeginBlock`, use the `Validator`
  32. type, which contains just the `Address`. When returning `ResponseEndBlock`, use
  33. the `ValidatorUpdate` type, which contains just the `PubKey`.
  34. ### Validator Set Updates
  35. Validator set updates returned in ResponseEndBlock for height `H` used to take
  36. effect immediately at height `H+1`. Now they will be delayed one block, to take
  37. effect at height `H+2`. Note this means that the change will be seen by the ABCI
  38. app in the `RequestBeginBlock.LastCommitInfo` at block `H+3`.
  39. ### Block Size
  40. The `ConsensusParams.BlockSize.MaxTxs` was removed in favour of
  41. `ConsensusParams.BlockSize.MaxBytes`, which is now enforced. This means blocks
  42. are limitted only by byte-size, not by number of transactions.