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.

1801 lines
82 KiB

8 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
p2p: introduce peerConn to simplify peer creation (#1226) * expose AuthEnc in the P2P config if AuthEnc is true, dialed peers must have a node ID in the address and it must match the persistent pubkey from the secret handshake. Refs #1157 * fixes after my own review * fix docs * fix build failure ``` p2p/pex/pex_reactor_test.go:288:88: cannot use seed.NodeInfo().NetAddress() (type *p2p.NetAddress) as type string in array or slice literal ``` * p2p: introduce peerConn to simplify peer creation * Introduce `peerConn` containing the known fields of `peer` * `peer` only created in `sw.addPeer` once handshake is complete and NodeInfo is checked * Eliminates some mutable variables and makes the code flow better * Simplifies the `newXxxPeer` funcs * Use ID instead of PubKey where possible. * SetPubKeyFilter -> SetIDFilter * nodeInfo.Validate takes ID * remove peer.PubKey() * persistent node ids * fixes from review * test: use ip_plus_id.sh more * fix invalid memory panic during fast_sync test ``` 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: panic: runtime error: invalid memory address or nil pointer dereference 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x98dd3e] 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: goroutine 3432 [running]: 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: github.com/tendermint/tendermint/p2p.newOutboundPeerConn(0xc423fd1380, 0xc420933e00, 0x1, 0x1239a60, 0 xc420128c40, 0x2, 0x42caf6, 0xc42001f300, 0xc422831d98, 0xc4227951c0, ...) 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/peer.go:123 +0x31e 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: github.com/tendermint/tendermint/p2p.(*Switch).addOutboundPeerWithConfig(0xc4200ad040, 0xc423fd1380, 0 xc420933e00, 0xc423f48801, 0x28, 0x2) 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/switch.go:455 +0x12b 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: github.com/tendermint/tendermint/p2p.(*Switch).DialPeerWithAddress(0xc4200ad040, 0xc423fd1380, 0x1, 0x 0, 0x0) 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/switch.go:371 +0xdc 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: github.com/tendermint/tendermint/p2p.(*Switch).reconnectToPeer(0xc4200ad040, 0x123e000, 0xc42007bb00) 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/switch.go:290 +0x25f 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: created by github.com/tendermint/tendermint/p2p.(*Switch).StopPeerForError 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/switch.go:256 +0x1b7 ```
7 years ago
p2p: introduce peerConn to simplify peer creation (#1226) * expose AuthEnc in the P2P config if AuthEnc is true, dialed peers must have a node ID in the address and it must match the persistent pubkey from the secret handshake. Refs #1157 * fixes after my own review * fix docs * fix build failure ``` p2p/pex/pex_reactor_test.go:288:88: cannot use seed.NodeInfo().NetAddress() (type *p2p.NetAddress) as type string in array or slice literal ``` * p2p: introduce peerConn to simplify peer creation * Introduce `peerConn` containing the known fields of `peer` * `peer` only created in `sw.addPeer` once handshake is complete and NodeInfo is checked * Eliminates some mutable variables and makes the code flow better * Simplifies the `newXxxPeer` funcs * Use ID instead of PubKey where possible. * SetPubKeyFilter -> SetIDFilter * nodeInfo.Validate takes ID * remove peer.PubKey() * persistent node ids * fixes from review * test: use ip_plus_id.sh more * fix invalid memory panic during fast_sync test ``` 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: panic: runtime error: invalid memory address or nil pointer dereference 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x98dd3e] 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: goroutine 3432 [running]: 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: github.com/tendermint/tendermint/p2p.newOutboundPeerConn(0xc423fd1380, 0xc420933e00, 0x1, 0x1239a60, 0 xc420128c40, 0x2, 0x42caf6, 0xc42001f300, 0xc422831d98, 0xc4227951c0, ...) 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/peer.go:123 +0x31e 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: github.com/tendermint/tendermint/p2p.(*Switch).addOutboundPeerWithConfig(0xc4200ad040, 0xc423fd1380, 0 xc420933e00, 0xc423f48801, 0x28, 0x2) 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/switch.go:455 +0x12b 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: github.com/tendermint/tendermint/p2p.(*Switch).DialPeerWithAddress(0xc4200ad040, 0xc423fd1380, 0x1, 0x 0, 0x0) 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/switch.go:371 +0xdc 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: github.com/tendermint/tendermint/p2p.(*Switch).reconnectToPeer(0xc4200ad040, 0x123e000, 0xc42007bb00) 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/switch.go:290 +0x25f 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: created by github.com/tendermint/tendermint/p2p.(*Switch).StopPeerForError 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/switch.go:256 +0x1b7 ```
7 years ago
p2p: introduce peerConn to simplify peer creation (#1226) * expose AuthEnc in the P2P config if AuthEnc is true, dialed peers must have a node ID in the address and it must match the persistent pubkey from the secret handshake. Refs #1157 * fixes after my own review * fix docs * fix build failure ``` p2p/pex/pex_reactor_test.go:288:88: cannot use seed.NodeInfo().NetAddress() (type *p2p.NetAddress) as type string in array or slice literal ``` * p2p: introduce peerConn to simplify peer creation * Introduce `peerConn` containing the known fields of `peer` * `peer` only created in `sw.addPeer` once handshake is complete and NodeInfo is checked * Eliminates some mutable variables and makes the code flow better * Simplifies the `newXxxPeer` funcs * Use ID instead of PubKey where possible. * SetPubKeyFilter -> SetIDFilter * nodeInfo.Validate takes ID * remove peer.PubKey() * persistent node ids * fixes from review * test: use ip_plus_id.sh more * fix invalid memory panic during fast_sync test ``` 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: panic: runtime error: invalid memory address or nil pointer dereference 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x98dd3e] 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: goroutine 3432 [running]: 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: github.com/tendermint/tendermint/p2p.newOutboundPeerConn(0xc423fd1380, 0xc420933e00, 0x1, 0x1239a60, 0 xc420128c40, 0x2, 0x42caf6, 0xc42001f300, 0xc422831d98, 0xc4227951c0, ...) 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/peer.go:123 +0x31e 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: github.com/tendermint/tendermint/p2p.(*Switch).addOutboundPeerWithConfig(0xc4200ad040, 0xc423fd1380, 0 xc420933e00, 0xc423f48801, 0x28, 0x2) 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/switch.go:455 +0x12b 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: github.com/tendermint/tendermint/p2p.(*Switch).DialPeerWithAddress(0xc4200ad040, 0xc423fd1380, 0x1, 0x 0, 0x0) 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/switch.go:371 +0xdc 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: github.com/tendermint/tendermint/p2p.(*Switch).reconnectToPeer(0xc4200ad040, 0x123e000, 0xc42007bb00) 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/switch.go:290 +0x25f 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: created by github.com/tendermint/tendermint/p2p.(*Switch).StopPeerForError 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/switch.go:256 +0x1b7 ```
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. # Changelog
  2. ## v0.29.0
  3. *January 21, 2019*
  4. Special thanks to external contributors on this release:
  5. @bradyjoestar, @kunaldhariwal, @gauthamzz, @hrharder
  6. This release is primarily about making some breaking changes to
  7. the Block protocol version before Cosmos launch, and to fixing more issues
  8. in the proposer selection algorithm discovered on Cosmos testnets.
  9. The Block protocol changes include using a standard Merkle tree format (RFC 6962),
  10. fixing some inconsistencies between field orders in Vote and Proposal structs,
  11. and constraining the hash of the ConsensusParams to include only a few fields.
  12. The proposer selection algorithm saw significant progress,
  13. including a [formal proof by @cwgoes for the base-case in Idris](https://github.com/cwgoes/tm-proposer-idris)
  14. and a [much more detailed specification (still in progress) by
  15. @ancazamfir](https://github.com/tendermint/tendermint/pull/3140).
  16. Fixes to the proposer selection algorithm include normalizing the proposer
  17. priorities to mitigate the effects of large changes to the validator set.
  18. That said, we just discovered [another bug](https://github.com/tendermint/tendermint/issues/3181),
  19. which will be fixed in the next breaking release.
  20. While we are trying to stabilize the Block protocol to preserve compatibility
  21. with old chains, there may be some final changes yet to come before Cosmos
  22. launch as we continue to audit and test the software.
  23. Friendly reminder, we have a [bug bounty
  24. program](https://hackerone.com/tendermint).
  25. ### BREAKING CHANGES:
  26. * CLI/RPC/Config
  27. * Apps
  28. - [state] [\#3049](https://github.com/tendermint/tendermint/issues/3049) Total voting power of the validator set is upper bounded by
  29. `MaxInt64 / 8`. Apps must ensure they do not return changes to the validator
  30. set that cause this maximum to be exceeded.
  31. * Go API
  32. - [node] [\#3082](https://github.com/tendermint/tendermint/issues/3082) MetricsProvider now requires you to pass a chain ID
  33. - [types] [\#2713](https://github.com/tendermint/tendermint/issues/2713) Rename `TxProof.LeafHash` to `TxProof.Leaf`
  34. - [crypto/merkle] [\#2713](https://github.com/tendermint/tendermint/issues/2713) `SimpleProof.Verify` takes a `leaf` instead of a
  35. `leafHash` and performs the hashing itself
  36. * Blockchain Protocol
  37. * [crypto/merkle] [\#2713](https://github.com/tendermint/tendermint/issues/2713) Merkle trees now match the RFC 6962 specification
  38. * [types] [\#3078](https://github.com/tendermint/tendermint/issues/3078) Re-order Timestamp and BlockID in CanonicalVote so it's
  39. consistent with CanonicalProposal (BlockID comes
  40. first)
  41. * [types] [\#3165](https://github.com/tendermint/tendermint/issues/3165) Hash of ConsensusParams only includes BlockSize.MaxBytes and
  42. BlockSize.MaxGas
  43. * P2P Protocol
  44. - [consensus] [\#3049](https://github.com/tendermint/tendermint/issues/3049) Normalize priorities to not exceed `2*TotalVotingPower` to mitigate unfair proposer selection
  45. heavily preferring earlier joined validators in the case of an early bonded large validator unbonding
  46. ### FEATURES:
  47. ### IMPROVEMENTS:
  48. - [rpc] [\#3065](https://github.com/tendermint/tendermint/issues/3065) Return maxPerPage (100), not defaultPerPage (30) if `per_page` is greater than the max 100.
  49. - [instrumentation] [\#3082](https://github.com/tendermint/tendermint/issues/3082) Add `chain_id` label for all metrics
  50. ### BUG FIXES:
  51. - [crypto] [\#3164](https://github.com/tendermint/tendermint/issues/3164) Update `btcd` fork for rare signRFC6979 bug
  52. - [lite] [\#3171](https://github.com/tendermint/tendermint/issues/3171) Fix verifying large validator set changes
  53. - [log] [\#3125](https://github.com/tendermint/tendermint/issues/3125) Fix year format
  54. - [mempool] [\#3168](https://github.com/tendermint/tendermint/issues/3168) Limit tx size to fit in the max reactor msg size
  55. - [scripts] [\#3147](https://github.com/tendermint/tendermint/issues/3147) Fix json2wal for large block parts (@bradyjoestar)
  56. ## v0.28.1
  57. *January 18th, 2019*
  58. Special thanks to external contributors on this release:
  59. @HaoyangLiu
  60. Friendly reminder, we have a [bug bounty
  61. program](https://hackerone.com/tendermint).
  62. ### BUG FIXES:
  63. - [consensus] Fix consensus halt from proposing blocks with too much evidence
  64. ## v0.28.0
  65. *January 16th, 2019*
  66. Special thanks to external contributors on this release:
  67. @fmauricios, @gianfelipe93, @husio, @needkane, @srmo, @yutianwu
  68. This release is primarily about upgrades to the `privval` system -
  69. separating the `priv_validator.json` into distinct config and data files, and
  70. refactoring the socket validator to support reconnections.
  71. **Note:** Please backup your existing `priv_validator.json` before using this
  72. version.
  73. See [UPGRADING.md](UPGRADING.md) for more details.
  74. ### BREAKING CHANGES:
  75. * CLI/RPC/Config
  76. - [cli] Removed `--proxy_app=dummy` option. Use `kvstore` (`persistent_kvstore`) instead.
  77. - [cli] Renamed `--proxy_app=nilapp` to `--proxy_app=noop`.
  78. - [config] [\#2992](https://github.com/tendermint/tendermint/issues/2992) `allow_duplicate_ip` is now set to false
  79. - [privval] [\#1181](https://github.com/tendermint/tendermint/issues/1181) Split `priv_validator.json` into immutable (`config/priv_validator_key.json`) and mutable (`data/priv_validator_state.json`) parts (@yutianwu)
  80. - [privval] [\#2926](https://github.com/tendermint/tendermint/issues/2926) Split up `PubKeyMsg` into `PubKeyRequest` and `PubKeyResponse` to be consistent with other message types
  81. - [privval] [\#2923](https://github.com/tendermint/tendermint/issues/2923) Listen for unix socket connections instead of dialing them
  82. * Apps
  83. * Go API
  84. - [types] [\#2981](https://github.com/tendermint/tendermint/issues/2981) Remove `PrivValidator.GetAddress()`
  85. * Blockchain Protocol
  86. * P2P Protocol
  87. ### FEATURES:
  88. - [rpc] [\#3052](https://github.com/tendermint/tendermint/issues/3052) Include peer's remote IP in `/net_info`
  89. ### IMPROVEMENTS:
  90. - [consensus] [\#3086](https://github.com/tendermint/tendermint/issues/3086) Log peerID on ignored votes (@srmo)
  91. - [docs] [\#3061](https://github.com/tendermint/tendermint/issues/3061) Added specification for signing consensus msgs at
  92. ./docs/spec/consensus/signing.md
  93. - [privval] [\#2948](https://github.com/tendermint/tendermint/issues/2948) Memoize pubkey so it's only requested once on startup
  94. - [privval] [\#2923](https://github.com/tendermint/tendermint/issues/2923) Retry RemoteSigner connections on error
  95. ### BUG FIXES:
  96. - [build] [\#3085](https://github.com/tendermint/tendermint/issues/3085) Fix `Version` field in build scripts (@husio)
  97. - [crypto/multisig] [\#3102](https://github.com/tendermint/tendermint/issues/3102) Fix multisig keys address length
  98. - [crypto/encoding] [\#3101](https://github.com/tendermint/tendermint/issues/3101) Fix `PubKeyMultisigThreshold` unmarshalling into `crypto.PubKey` interface
  99. - [p2p/conn] [\#3111](https://github.com/tendermint/tendermint/issues/3111) Make SecretConnection thread safe
  100. - [rpc] [\#3053](https://github.com/tendermint/tendermint/issues/3053) Fix internal error in `/tx_search` when results are empty
  101. (@gianfelipe93)
  102. - [types] [\#2926](https://github.com/tendermint/tendermint/issues/2926) Do not panic if retrieving the privval's public key fails
  103. ## v0.27.4
  104. *December 21st, 2018*
  105. ### BUG FIXES:
  106. - [mempool] [\#3036](https://github.com/tendermint/tendermint/issues/3036) Fix
  107. LRU cache by popping the least recently used item when the cache is full,
  108. not the most recently used one!
  109. ## v0.27.3
  110. *December 16th, 2018*
  111. ### BREAKING CHANGES:
  112. * Go API
  113. - [dep] [\#3027](https://github.com/tendermint/tendermint/issues/3027) Revert to mainline Go crypto library, eliminating the modified
  114. `bcrypt.GenerateFromPassword`
  115. ## v0.27.2
  116. *December 16th, 2018*
  117. ### IMPROVEMENTS:
  118. - [node] [\#3025](https://github.com/tendermint/tendermint/issues/3025) Validate NodeInfo addresses on startup.
  119. ### BUG FIXES:
  120. - [p2p] [\#3025](https://github.com/tendermint/tendermint/pull/3025) Revert to using defers in addrbook. Fixes deadlocks in pex and consensus upon invalid ExternalAddr/ListenAddr configuration.
  121. ## v0.27.1
  122. *December 15th, 2018*
  123. Special thanks to external contributors on this release:
  124. @danil-lashin, @hleb-albau, @james-ray, @leo-xinwang
  125. ### FEATURES:
  126. - [rpc] [\#2964](https://github.com/tendermint/tendermint/issues/2964) Add `UnconfirmedTxs(limit)` and `NumUnconfirmedTxs()` methods to HTTP/Local clients (@danil-lashin)
  127. - [docs] [\#3004](https://github.com/tendermint/tendermint/issues/3004) Enable full-text search on docs pages
  128. ### IMPROVEMENTS:
  129. - [consensus] [\#2971](https://github.com/tendermint/tendermint/issues/2971) Return error if ValidatorSet is empty after InitChain
  130. (@leo-xinwang)
  131. - [ci/cd] [\#3005](https://github.com/tendermint/tendermint/issues/3005) Updated CircleCI job to trigger website build when docs are updated
  132. - [docs] Various updates
  133. ### BUG FIXES:
  134. - [cmd] [\#2983](https://github.com/tendermint/tendermint/issues/2983) `testnet` command always sets `addr_book_strict = false`
  135. - [config] [\#2980](https://github.com/tendermint/tendermint/issues/2980) Fix CORS options formatting
  136. - [kv indexer] [\#2912](https://github.com/tendermint/tendermint/issues/2912) Don't ignore key when executing CONTAINS
  137. - [mempool] [\#2961](https://github.com/tendermint/tendermint/issues/2961) Call `notifyTxsAvailable` if there're txs left after committing a block, but recheck=false
  138. - [mempool] [\#2994](https://github.com/tendermint/tendermint/issues/2994) Reject txs with negative GasWanted
  139. - [p2p] [\#2990](https://github.com/tendermint/tendermint/issues/2990) Fix a bug where seeds don't disconnect from a peer after 3h
  140. - [consensus] [\#3006](https://github.com/tendermint/tendermint/issues/3006) Save state after InitChain only when stateHeight is also 0 (@james-ray)
  141. ## v0.27.0
  142. *December 5th, 2018*
  143. Special thanks to external contributors on this release:
  144. @danil-lashin, @srmo
  145. Special thanks to @dlguddus for discovering a [major
  146. issue](https://github.com/tendermint/tendermint/issues/2718#issuecomment-440888677)
  147. in the proposer selection algorithm.
  148. Friendly reminder, we have a [bug bounty
  149. program](https://hackerone.com/tendermint).
  150. This release is primarily about fixes to the proposer selection algorithm
  151. in preparation for the [Cosmos Game of
  152. Stakes](https://blog.cosmos.network/the-game-of-stakes-is-open-for-registration-83a404746ee6).
  153. It also makes use of the `ConsensusParams.Validator.PubKeyTypes` to restrict the
  154. key types that can be used by validators, and removes the `Heartbeat` consensus
  155. message.
  156. ### BREAKING CHANGES:
  157. * CLI/RPC/Config
  158. - [rpc] [\#2932](https://github.com/tendermint/tendermint/issues/2932) Rename `accum` to `proposer_priority`
  159. * Go API
  160. - [db] [\#2913](https://github.com/tendermint/tendermint/pull/2913)
  161. ReverseIterator API change: start < end, and end is exclusive.
  162. - [types] [\#2932](https://github.com/tendermint/tendermint/issues/2932) Rename `Validator.Accum` to `Validator.ProposerPriority`
  163. * Blockchain Protocol
  164. - [state] [\#2714](https://github.com/tendermint/tendermint/issues/2714) Validators can now only use pubkeys allowed within
  165. ConsensusParams.Validator.PubKeyTypes
  166. * P2P Protocol
  167. - [consensus] [\#2871](https://github.com/tendermint/tendermint/issues/2871)
  168. Remove *ProposalHeartbeat* message as it serves no real purpose (@srmo)
  169. - [state] Fixes for proposer selection:
  170. - [\#2785](https://github.com/tendermint/tendermint/issues/2785) Accum for new validators is `-1.125*totalVotingPower` instead of 0
  171. - [\#2941](https://github.com/tendermint/tendermint/issues/2941) val.Accum is preserved during ValidatorSet.Update to avoid being
  172. reset to 0
  173. ### IMPROVEMENTS:
  174. - [state] [\#2929](https://github.com/tendermint/tendermint/issues/2929) Minor refactor of updateState logic (@danil-lashin)
  175. - [node] [\#2959](https://github.com/tendermint/tendermint/issues/2959) Allow node to start even if software's BlockProtocol is
  176. different from state's BlockProtocol
  177. - [pex] [\#2959](https://github.com/tendermint/tendermint/issues/2959) Pex reactor logger uses `module=pex`
  178. ### BUG FIXES:
  179. - [p2p] [\#2968](https://github.com/tendermint/tendermint/issues/2968) Panic on transport error rather than continuing to run but not
  180. accept new connections
  181. - [p2p] [\#2969](https://github.com/tendermint/tendermint/issues/2969) Fix mismatch in peer count between `/net_info` and the prometheus
  182. metrics
  183. - [rpc] [\#2408](https://github.com/tendermint/tendermint/issues/2408) `/broadcast_tx_commit`: Fix "interface conversion: interface {} in nil, not EventDataTx" panic (could happen if somebody sent a tx using `/broadcast_tx_commit` while Tendermint was being stopped)
  184. - [state] [\#2785](https://github.com/tendermint/tendermint/issues/2785) Fix accum for new validators to be `-1.125*totalVotingPower`
  185. instead of 0, forcing them to wait before becoming the proposer. Also:
  186. - do not batch clip
  187. - keep accums averaged near 0
  188. - [txindex/kv] [\#2925](https://github.com/tendermint/tendermint/issues/2925) Don't return false positives when range searching for a prefix of a tag value
  189. - [types] [\#2938](https://github.com/tendermint/tendermint/issues/2938) Fix regression in v0.26.4 where we panic on empty
  190. genDoc.Validators
  191. - [types] [\#2941](https://github.com/tendermint/tendermint/issues/2941) Preserve val.Accum during ValidatorSet.Update to avoid it being
  192. reset to 0 every time a validator is updated
  193. ## v0.26.4
  194. *November 27th, 2018*
  195. Special thanks to external contributors on this release:
  196. @ackratos, @goolAdapter, @james-ray, @joe-bowman, @kostko,
  197. @nagarajmanjunath, @tomtau
  198. Friendly reminder, we have a [bug bounty
  199. program](https://hackerone.com/tendermint).
  200. ### FEATURES:
  201. - [rpc] [\#2747](https://github.com/tendermint/tendermint/issues/2747) Enable subscription to tags emitted from `BeginBlock`/`EndBlock` (@kostko)
  202. - [types] [\#2747](https://github.com/tendermint/tendermint/issues/2747) Add `ResultBeginBlock` and `ResultEndBlock` fields to `EventDataNewBlock`
  203. and `EventDataNewBlockHeader` to support subscriptions (@kostko)
  204. - [types] [\#2918](https://github.com/tendermint/tendermint/issues/2918) Add Marshal, MarshalTo, Unmarshal methods to various structs
  205. to support Protobuf compatibility (@nagarajmanjunath)
  206. ### IMPROVEMENTS:
  207. - [config] [\#2877](https://github.com/tendermint/tendermint/issues/2877) Add `blocktime_iota` to the config.toml (@ackratos)
  208. - NOTE: this should be a ConsensusParam, not part of the config, and will be
  209. removed from the config at a later date
  210. ([\#2920](https://github.com/tendermint/tendermint/issues/2920).
  211. - [mempool] [\#2882](https://github.com/tendermint/tendermint/issues/2882) Add txs from Update to cache
  212. - [mempool] [\#2891](https://github.com/tendermint/tendermint/issues/2891) Remove local int64 counter from being stored in every tx
  213. - [node] [\#2866](https://github.com/tendermint/tendermint/issues/2866) Add ability to instantiate IPCVal (@joe-bowman)
  214. ### BUG FIXES:
  215. - [blockchain] [\#2731](https://github.com/tendermint/tendermint/issues/2731) Retry both blocks if either is bad to avoid getting stuck during fast sync (@goolAdapter)
  216. - [consensus] [\#2893](https://github.com/tendermint/tendermint/issues/2893) Use genDoc.Validators instead of state.NextValidators on replay when appHeight==0 (@james-ray)
  217. - [log] [\#2868](https://github.com/tendermint/tendermint/issues/2868) Fix `module=main` setting overriding all others
  218. - NOTE: this changes the default logging behaviour to be much less verbose.
  219. Set `log_level="info"` to restore the previous behaviour.
  220. - [rpc] [\#2808](https://github.com/tendermint/tendermint/issues/2808) Fix `accum` field in `/validators` by calling `IncrementAccum` if necessary
  221. - [rpc] [\#2811](https://github.com/tendermint/tendermint/issues/2811) Allow integer IDs in JSON-RPC requests (@tomtau)
  222. - [txindex/kv] [\#2759](https://github.com/tendermint/tendermint/issues/2759) Fix tx.height range queries
  223. - [txindex/kv] [\#2775](https://github.com/tendermint/tendermint/issues/2775) Order tx results by index if height is the same
  224. - [txindex/kv] [\#2908](https://github.com/tendermint/tendermint/issues/2908) Don't return false positives when searching for a prefix of a tag value
  225. ## v0.26.3
  226. *November 17th, 2018*
  227. Special thanks to external contributors on this release:
  228. @danil-lashin, @kevlubkcm, @krhubert, @srmo
  229. Friendly reminder, we have a [bug bounty
  230. program](https://hackerone.com/tendermint).
  231. ### BREAKING CHANGES:
  232. * Go API
  233. - [rpc] [\#2791](https://github.com/tendermint/tendermint/issues/2791) Functions that start HTTP servers are now blocking:
  234. - Impacts `StartHTTPServer`, `StartHTTPAndTLSServer`, and `StartGRPCServer`
  235. - These functions now take a `net.Listener` instead of an address
  236. - [rpc] [\#2767](https://github.com/tendermint/tendermint/issues/2767) Subscribing to events
  237. `NewRound` and `CompleteProposal` return new types `EventDataNewRound` and
  238. `EventDataCompleteProposal`, respectively, instead of the generic `EventDataRoundState`. (@kevlubkcm)
  239. ### FEATURES:
  240. - [log] [\#2843](https://github.com/tendermint/tendermint/issues/2843) New `log_format` config option, which can be set to 'plain' for colored
  241. text or 'json' for JSON output
  242. - [types] [\#2767](https://github.com/tendermint/tendermint/issues/2767) New event types EventDataNewRound (with ProposerInfo) and EventDataCompleteProposal (with BlockID). (@kevlubkcm)
  243. ### IMPROVEMENTS:
  244. - [dep] [\#2844](https://github.com/tendermint/tendermint/issues/2844) Dependencies are no longer pinned to an exact version in the
  245. Gopkg.toml:
  246. - Serialization libs are allowed to vary by patch release
  247. - Other libs are allowed to vary by minor release
  248. - [p2p] [\#2857](https://github.com/tendermint/tendermint/issues/2857) "Send failed" is logged at debug level instead of error.
  249. - [rpc] [\#2780](https://github.com/tendermint/tendermint/issues/2780) Add read and write timeouts to HTTP servers
  250. - [state] [\#2848](https://github.com/tendermint/tendermint/issues/2848) Make "Update to validators" msg value pretty (@danil-lashin)
  251. ### BUG FIXES:
  252. - [consensus] [\#2819](https://github.com/tendermint/tendermint/issues/2819) Don't send proposalHearbeat if not a validator
  253. - [docs] [\#2859](https://github.com/tendermint/tendermint/issues/2859) Fix ConsensusParams details in spec
  254. - [libs/autofile] [\#2760](https://github.com/tendermint/tendermint/issues/2760) Comment out autofile permissions check - should fix
  255. running Tendermint on Windows
  256. - [p2p] [\#2869](https://github.com/tendermint/tendermint/issues/2869) Set connection config properly instead of always using default
  257. - [p2p/pex] [\#2802](https://github.com/tendermint/tendermint/issues/2802) Seed mode fixes:
  258. - Only disconnect from inbound peers
  259. - Use FlushStop instead of Sleep to ensure all messages are sent before
  260. disconnecting
  261. ## v0.26.2
  262. *November 15th, 2018*
  263. Special thanks to external contributors on this release: @hleb-albau, @zhuzeyu
  264. Friendly reminder, we have a [bug bounty program](https://hackerone.com/tendermint).
  265. ### FEATURES:
  266. - [rpc] [\#2582](https://github.com/tendermint/tendermint/issues/2582) Enable CORS on RPC API (@hleb-albau)
  267. ### BUG FIXES:
  268. - [abci] [\#2748](https://github.com/tendermint/tendermint/issues/2748) Unlock mutex in localClient so even when app panics (e.g. during CheckTx), consensus continue working
  269. - [abci] [\#2748](https://github.com/tendermint/tendermint/issues/2748) Fix DATA RACE in localClient
  270. - [amino] [\#2822](https://github.com/tendermint/tendermint/issues/2822) Update to v0.14.1 to support compiling on 32-bit platforms
  271. - [rpc] [\#2748](https://github.com/tendermint/tendermint/issues/2748) Drain channel before calling Unsubscribe(All) in `/broadcast_tx_commit`
  272. ## v0.26.1
  273. *November 11, 2018*
  274. Special thanks to external contributors on this release: @katakonst
  275. Friendly reminder, we have a [bug bounty program](https://hackerone.com/tendermint).
  276. ### IMPROVEMENTS:
  277. - [consensus] [\#2704](https://github.com/tendermint/tendermint/issues/2704) Simplify valid POL round logic
  278. - [docs] [\#2749](https://github.com/tendermint/tendermint/issues/2749) Deduplicate some ABCI docs
  279. - [mempool] More detailed log messages
  280. - [\#2724](https://github.com/tendermint/tendermint/issues/2724)
  281. - [\#2762](https://github.com/tendermint/tendermint/issues/2762)
  282. ### BUG FIXES:
  283. - [autofile] [\#2703](https://github.com/tendermint/tendermint/issues/2703) Do not panic when checking Head size
  284. - [crypto/merkle] [\#2756](https://github.com/tendermint/tendermint/issues/2756) Fix crypto/merkle ProofOperators.Verify to check bounds on keypath parts.
  285. - [mempool] fix a bug where we create a WAL despite `wal_dir` being empty
  286. - [p2p] [\#2771](https://github.com/tendermint/tendermint/issues/2771) Fix `peer-id` label name to `peer_id` in prometheus metrics
  287. - [p2p] [\#2797](https://github.com/tendermint/tendermint/pull/2797) Fix IDs in peer NodeInfo and require them for addresses
  288. in AddressBook
  289. - [p2p] [\#2797](https://github.com/tendermint/tendermint/pull/2797) Do not close conn immediately after sending pex addrs in seed mode. Partial fix for [\#2092](https://github.com/tendermint/tendermint/issues/2092).
  290. ## v0.26.0
  291. *November 2, 2018*
  292. Special thanks to external contributors on this release:
  293. @bradyjoestar, @connorwstein, @goolAdapter, @HaoyangLiu,
  294. @james-ray, @overbool, @phymbert, @Slamper, @Uzair1995, @yutianwu.
  295. Special thanks to @Slamper for a series of bug reports in our [bug bounty
  296. program](https://hackerone.com/tendermint) which are fixed in this release.
  297. This release is primarily about adding Version fields to various data structures,
  298. optimizing consensus messages for signing and verification in
  299. restricted environments (like HSMs and the Ethereum Virtual Machine), and
  300. aligning the consensus code with the [specification](https://arxiv.org/abs/1807.04938).
  301. It also includes our first take at a generalized merkle proof system, and
  302. changes the length of hashes used for hashing data structures from 20 to 32
  303. bytes.
  304. See the [UPGRADING.md](UPGRADING.md#v0.26.0) for details on upgrading to the new
  305. version.
  306. Please note that we are still making breaking changes to the protocols.
  307. While the new Version fields should help us to keep the software backwards compatible
  308. even while upgrading the protocols, we cannot guarantee that new releases will
  309. be compatible with old chains just yet. We expect there will be another breaking
  310. release or two before the Cosmos Hub launch, but we will otherwise be paying
  311. increasing attention to backwards compatibility. Thanks for bearing with us!
  312. ### BREAKING CHANGES:
  313. * CLI/RPC/Config
  314. * [config] [\#2232](https://github.com/tendermint/tendermint/issues/2232) Timeouts are now strings like "3s" and "100ms", not ints
  315. * [config] [\#2505](https://github.com/tendermint/tendermint/issues/2505) Remove Mempool.RecheckEmpty (it was effectively useless anyways)
  316. * [config] [\#2490](https://github.com/tendermint/tendermint/issues/2490) `mempool.wal` is disabled by default
  317. * [privval] [\#2459](https://github.com/tendermint/tendermint/issues/2459) Split `SocketPVMsg`s implementations into Request and Response, where the Response may contain a error message (returned by the remote signer)
  318. * [state] [\#2644](https://github.com/tendermint/tendermint/issues/2644) Add Version field to State, breaking the format of State as
  319. encoded on disk.
  320. * [rpc] [\#2298](https://github.com/tendermint/tendermint/issues/2298) `/abci_query` takes `prove` argument instead of `trusted` and switches the default
  321. behaviour to `prove=false`
  322. * [rpc] [\#2654](https://github.com/tendermint/tendermint/issues/2654) Remove all `node_info.other.*_version` fields in `/status` and
  323. `/net_info`
  324. * [rpc] [\#2636](https://github.com/tendermint/tendermint/issues/2636) Remove
  325. `_params` suffix from fields in `consensus_params`.
  326. * Apps
  327. * [abci] [\#2298](https://github.com/tendermint/tendermint/issues/2298) ResponseQuery.Proof is now a structured merkle.Proof, not just
  328. arbitrary bytes
  329. * [abci] [\#2644](https://github.com/tendermint/tendermint/issues/2644) Add Version to Header and shift all fields by one
  330. * [abci] [\#2662](https://github.com/tendermint/tendermint/issues/2662) Bump the field numbers for some `ResponseInfo` fields to make room for
  331. `AppVersion`
  332. * [abci] [\#2636](https://github.com/tendermint/tendermint/issues/2636) Updates to ConsensusParams
  333. * Remove `Params` suffix from field names
  334. * Add `Params` suffix to message types
  335. * Add new field and type, `Validator ValidatorParams`, to control what types of validator keys are allowed.
  336. * Go API
  337. * [config] [\#2232](https://github.com/tendermint/tendermint/issues/2232) Timeouts are time.Duration, not ints
  338. * [crypto/merkle & lite] [\#2298](https://github.com/tendermint/tendermint/issues/2298) Various changes to accomodate General Merkle trees
  339. * [crypto/merkle] [\#2595](https://github.com/tendermint/tendermint/issues/2595) Remove all Hasher objects in favor of byte slices
  340. * [crypto/merkle] [\#2635](https://github.com/tendermint/tendermint/issues/2635) merkle.SimpleHashFromTwoHashes is no longer exported
  341. * [node] [\#2479](https://github.com/tendermint/tendermint/issues/2479) Remove node.RunForever
  342. * [rpc/client] [\#2298](https://github.com/tendermint/tendermint/issues/2298) `ABCIQueryOptions.Trusted` -> `ABCIQueryOptions.Prove`
  343. * [types] [\#2298](https://github.com/tendermint/tendermint/issues/2298) Remove `Index` and `Total` fields from `TxProof`.
  344. * [types] [\#2598](https://github.com/tendermint/tendermint/issues/2598)
  345. `VoteTypeXxx` are now of type `SignedMsgType byte` and named `XxxType`, eg.
  346. `PrevoteType`, `PrecommitType`.
  347. * [types] [\#2636](https://github.com/tendermint/tendermint/issues/2636) Rename fields in ConsensusParams to remove `Params` suffixes
  348. * [types] [\#2735](https://github.com/tendermint/tendermint/issues/2735) Simplify Proposal message to align with spec
  349. * Blockchain Protocol
  350. * [crypto/tmhash] [\#2732](https://github.com/tendermint/tendermint/issues/2732) TMHASH is now full 32-byte SHA256
  351. * All hashes in the block header and Merkle trees are now 32-bytes
  352. * PubKey Addresses are still only 20-bytes
  353. * [state] [\#2587](https://github.com/tendermint/tendermint/issues/2587) Require block.Time of the fist block to be genesis time
  354. * [state] [\#2644](https://github.com/tendermint/tendermint/issues/2644) Require block.Version to match state.Version
  355. * [types] Update SignBytes for `Vote`/`Proposal`/`Heartbeat`:
  356. * [\#2459](https://github.com/tendermint/tendermint/issues/2459) Use amino encoding instead of JSON in `SignBytes`.
  357. * [\#2598](https://github.com/tendermint/tendermint/issues/2598) Reorder fields and use fixed sized encoding.
  358. * [\#2598](https://github.com/tendermint/tendermint/issues/2598) Change `Type` field from `string` to `byte` and use new
  359. `SignedMsgType` to enumerate.
  360. * [types] [\#2730](https://github.com/tendermint/tendermint/issues/2730) Use
  361. same order for fields in `Vote` as in the SignBytes
  362. * [types] [\#2732](https://github.com/tendermint/tendermint/issues/2732) Remove the address field from the validator hash
  363. * [types] [\#2644](https://github.com/tendermint/tendermint/issues/2644) Add Version struct to Header
  364. * [types] [\#2609](https://github.com/tendermint/tendermint/issues/2609) ConsensusParams.Hash() is the hash of the amino encoded
  365. struct instead of the Merkle tree of the fields
  366. * [types] [\#2670](https://github.com/tendermint/tendermint/issues/2670) Header.Hash() builds Merkle tree out of fields in the same
  367. order they appear in the header, instead of sorting by field name
  368. * [types] [\#2682](https://github.com/tendermint/tendermint/issues/2682) Use proto3 `varint` encoding for ints that are usually unsigned (instead of zigzag encoding).
  369. * [types] [\#2636](https://github.com/tendermint/tendermint/issues/2636) Add Validator field to ConsensusParams
  370. (Used to control which pubkey types validators can use, by abci type).
  371. * P2P Protocol
  372. * [consensus] [\#2652](https://github.com/tendermint/tendermint/issues/2652)
  373. Replace `CommitStepMessage` with `NewValidBlockMessage`
  374. * [consensus] [\#2735](https://github.com/tendermint/tendermint/issues/2735) Simplify `Proposal` message to align with spec
  375. * [consensus] [\#2730](https://github.com/tendermint/tendermint/issues/2730)
  376. Add `Type` field to `Proposal` and use same order of fields as in the
  377. SignBytes for both `Proposal` and `Vote`
  378. * [p2p] [\#2654](https://github.com/tendermint/tendermint/issues/2654) Add `ProtocolVersion` struct with protocol versions to top of
  379. DefaultNodeInfo and require `ProtocolVersion.Block` to match during peer handshake
  380. ### FEATURES:
  381. - [abci] [\#2557](https://github.com/tendermint/tendermint/issues/2557) Add `Codespace` field to `Response{CheckTx, DeliverTx, Query}`
  382. - [abci] [\#2662](https://github.com/tendermint/tendermint/issues/2662) Add `BlockVersion` and `P2PVersion` to `RequestInfo`
  383. - [crypto/merkle] [\#2298](https://github.com/tendermint/tendermint/issues/2298) General Merkle Proof scheme for chaining various types of Merkle trees together
  384. - [docs/architecture] [\#1181](https://github.com/tendermint/tendermint/issues/1181) S
  385. plit immutable and mutable parts of priv_validator.json
  386. ### IMPROVEMENTS:
  387. - Additional Metrics
  388. - [consensus] [\#2169](https://github.com/cosmos/cosmos-sdk/issues/2169)
  389. - [p2p] [\#2169](https://github.com/cosmos/cosmos-sdk/issues/2169)
  390. - [config] [\#2232](https://github.com/tendermint/tendermint/issues/2232) Added ValidateBasic method, which performs basic checks
  391. - [crypto/ed25519] [\#2558](https://github.com/tendermint/tendermint/issues/2558) Switch to use latest `golang.org/x/crypto` through our fork at
  392. github.com/tendermint/crypto
  393. - [libs/log] [\#2707](https://github.com/tendermint/tendermint/issues/2707) Add year to log format (@yutianwu)
  394. - [tools] [\#2238](https://github.com/tendermint/tendermint/issues/2238) Binary dependencies are now locked to a specific git commit
  395. ### BUG FIXES:
  396. - [\#2711](https://github.com/tendermint/tendermint/issues/2711) Validate all incoming reactor messages. Fixes various bugs due to negative ints.
  397. - [autofile] [\#2428](https://github.com/tendermint/tendermint/issues/2428) Group.RotateFile need call Flush() before rename (@goolAdapter)
  398. - [common] [\#2533](https://github.com/tendermint/tendermint/issues/2533) Fixed a bug in the `BitArray.Or` method
  399. - [common] [\#2506](https://github.com/tendermint/tendermint/issues/2506) Fixed a bug in the `BitArray.Sub` method (@james-ray)
  400. - [common] [\#2534](https://github.com/tendermint/tendermint/issues/2534) Fix `BitArray.PickRandom` to choose uniformly from true bits
  401. - [consensus] [\#1690](https://github.com/tendermint/tendermint/issues/1690) Wait for
  402. timeoutPrecommit before starting next round
  403. - [consensus] [\#1745](https://github.com/tendermint/tendermint/issues/1745) Wait for
  404. Proposal or timeoutProposal before entering prevote
  405. - [consensus] [\#2642](https://github.com/tendermint/tendermint/issues/2642) Only propose ValidBlock, not LockedBlock
  406. - [consensus] [\#2642](https://github.com/tendermint/tendermint/issues/2642) Initialized ValidRound and LockedRound to -1
  407. - [consensus] [\#1637](https://github.com/tendermint/tendermint/issues/1637) Limit the amount of evidence that can be included in a
  408. block
  409. - [consensus] [\#2652](https://github.com/tendermint/tendermint/issues/2652) Ensure valid block property with faulty proposer
  410. - [evidence] [\#2515](https://github.com/tendermint/tendermint/issues/2515) Fix db iter leak (@goolAdapter)
  411. - [libs/event] [\#2518](https://github.com/tendermint/tendermint/issues/2518) Fix event concurrency flaw (@goolAdapter)
  412. - [node] [\#2434](https://github.com/tendermint/tendermint/issues/2434) Make node respond to signal interrupts while sleeping for genesis time
  413. - [state] [\#2616](https://github.com/tendermint/tendermint/issues/2616) Pass nil to NewValidatorSet() when genesis file's Validators field is nil
  414. - [p2p] [\#2555](https://github.com/tendermint/tendermint/issues/2555) Fix p2p switch FlushThrottle value (@goolAdapter)
  415. - [p2p] [\#2668](https://github.com/tendermint/tendermint/issues/2668) Reconnect to originally dialed address (not self-reported address) for persistent peers
  416. ## v0.25.0
  417. *September 22, 2018*
  418. Special thanks to external contributors on this release:
  419. @scriptionist, @bradyjoestar, @WALL-E
  420. This release is mostly about the ConsensusParams - removing fields and enforcing MaxGas.
  421. It also addresses some issues found via security audit, removes various unused
  422. functions from `libs/common`, and implements
  423. [ADR-012](https://github.com/tendermint/tendermint/blob/develop/docs/architecture/adr-012-peer-transport.md).
  424. Friendly reminder, we have a [bug bounty program](https://hackerone.com/tendermint).
  425. BREAKING CHANGES:
  426. * CLI/RPC/Config
  427. * [rpc] [\#2391](https://github.com/tendermint/tendermint/issues/2391) /status `result.node_info.other` became a map
  428. * [types] [\#2364](https://github.com/tendermint/tendermint/issues/2364) Remove `TxSize` and `BlockGossip` from `ConsensusParams`
  429. * Maximum tx size is now set implicitly via the `BlockSize.MaxBytes`
  430. * The size of block parts in the consensus is now fixed to 64kB
  431. * Apps
  432. * [mempool] [\#2360](https://github.com/tendermint/tendermint/issues/2360) Mempool tracks the `ResponseCheckTx.GasWanted` and
  433. `ConsensusParams.BlockSize.MaxGas` and enforces:
  434. - `GasWanted <= MaxGas` for every tx
  435. - `(sum of GasWanted in block) <= MaxGas` for block proposal
  436. * Go API
  437. * [libs/common] [\#2431](https://github.com/tendermint/tendermint/issues/2431) Remove Word256 due to lack of use
  438. * [libs/common] [\#2452](https://github.com/tendermint/tendermint/issues/2452) Remove the following functions due to lack of use:
  439. * byteslice.go: cmn.IsZeros, cmn.RightPadBytes, cmn.LeftPadBytes, cmn.PrefixEndBytes
  440. * strings.go: cmn.IsHex, cmn.StripHex
  441. * int.go: Uint64Slice, all put/get int64 methods
  442. FEATURES:
  443. - [rpc] [\#2415](https://github.com/tendermint/tendermint/issues/2415) New `/consensus_params?height=X` endpoint to query the consensus
  444. params at any height (@scriptonist)
  445. - [types] [\#1714](https://github.com/tendermint/tendermint/issues/1714) Add Address to GenesisValidator
  446. - [metrics] [\#2337](https://github.com/tendermint/tendermint/issues/2337) `consensus.block_interval_metrics` is now gauge, not histogram (you will be able to see spikes, if any)
  447. - [libs] [\#2286](https://github.com/tendermint/tendermint/issues/2286) Panic if `autofile` or `db/fsdb` permissions change from 0600.
  448. IMPROVEMENTS:
  449. - [libs/db] [\#2371](https://github.com/tendermint/tendermint/issues/2371) Output error instead of panic when the given `db_backend` is not initialised (@bradyjoestar)
  450. - [mempool] [\#2399](https://github.com/tendermint/tendermint/issues/2399) Make mempool cache a proper LRU (@bradyjoestar)
  451. - [p2p] [\#2126](https://github.com/tendermint/tendermint/issues/2126) Introduce PeerTransport interface to improve isolation of concerns
  452. - [libs/common] [\#2326](https://github.com/tendermint/tendermint/issues/2326) Service returns ErrNotStarted
  453. BUG FIXES:
  454. - [node] [\#2294](https://github.com/tendermint/tendermint/issues/2294) Delay starting node until Genesis time
  455. - [consensus] [\#2048](https://github.com/tendermint/tendermint/issues/2048) Correct peer statistics for marking peer as good
  456. - [rpc] [\#2460](https://github.com/tendermint/tendermint/issues/2460) StartHTTPAndTLSServer() now passes StartTLS() errors back to the caller rather than hanging forever.
  457. - [p2p] [\#2047](https://github.com/tendermint/tendermint/issues/2047) Accept new connections asynchronously
  458. - [tm-bench] [\#2410](https://github.com/tendermint/tendermint/issues/2410) Enforce minimum transaction size (@WALL-E)
  459. ## 0.24.0
  460. *September 6th, 2018*
  461. Special thanks to external contributors with PRs included in this release: ackratos, james-ray, bradyjoestar,
  462. peerlink, Ahmah2009, bluele, b00f.
  463. This release includes breaking upgrades in the block header,
  464. including the long awaited changes for delaying validator set updates by one
  465. block to better support light clients.
  466. It also fixes enforcement on the maximum size of blocks, and includes a BFT
  467. timestamp in each block that can be safely used by applications.
  468. There are also some minor breaking changes to the rpc, config, and ABCI.
  469. See the [UPGRADING.md](UPGRADING.md#v0.24.0) for details on upgrading to the new
  470. version.
  471. From here on, breaking changes will be broken down to better reflect how users
  472. are affected by a change.
  473. A few more breaking changes are in the works - each will come with a clear
  474. Architecture Decision Record (ADR) explaining the change. You can review ADRs
  475. [here](https://github.com/tendermint/tendermint/tree/develop/docs/architecture)
  476. or in the [open Pull Requests](https://github.com/tendermint/tendermint/pulls).
  477. You can also check in on the [issues marked as
  478. breaking](https://github.com/tendermint/tendermint/issues?q=is%3Aopen+is%3Aissue+label%3Abreaking).
  479. BREAKING CHANGES:
  480. * CLI/RPC/Config
  481. - [config] [\#2169](https://github.com/tendermint/tendermint/issues/2169) Replace MaxNumPeers with MaxNumInboundPeers and MaxNumOutboundPeers
  482. - [config] [\#2300](https://github.com/tendermint/tendermint/issues/2300) Reduce default mempool size from 100k to 5k, until ABCI rechecking is implemented.
  483. - [rpc] [\#1815](https://github.com/tendermint/tendermint/issues/1815) `/commit` returns a `signed_header` field instead of everything being top-level
  484. * Apps
  485. - [abci] Added address of the original proposer of the block to Header
  486. - [abci] Change ABCI Header to match Tendermint exactly
  487. - [abci] [\#2159](https://github.com/tendermint/tendermint/issues/2159) Update use of `Validator` (see
  488. [ADR-018](https://github.com/tendermint/tendermint/blob/develop/docs/architecture/adr-018-ABCI-Validators.md)):
  489. - Remove PubKey from `Validator` (so it's just Address and Power)
  490. - Introduce `ValidatorUpdate` (with just PubKey and Power)
  491. - InitChain and EndBlock use ValidatorUpdate
  492. - Update field names and types in BeginBlock
  493. - [state] [\#1815](https://github.com/tendermint/tendermint/issues/1815) Validator set changes are now delayed by one block
  494. - updates returned in ResponseEndBlock for block H will be included in RequestBeginBlock for block H+2
  495. * Go API
  496. - [lite] [\#1815](https://github.com/tendermint/tendermint/issues/1815) Complete refactor of the package
  497. - [node] [\#2212](https://github.com/tendermint/tendermint/issues/2212) NewNode now accepts a `*p2p.NodeKey` (@bradyjoestar)
  498. - [libs/common] [\#2199](https://github.com/tendermint/tendermint/issues/2199) Remove Fmt, in favor of fmt.Sprintf
  499. - [libs/common] SplitAndTrim was deleted
  500. - [libs/common] [\#2274](https://github.com/tendermint/tendermint/issues/2274) Remove unused Math functions like MaxInt, MaxInt64,
  501. MinInt, MinInt64 (@Ahmah2009)
  502. - [libs/clist] Panics if list extends beyond MaxLength
  503. - [crypto] [\#2205](https://github.com/tendermint/tendermint/issues/2205) Rename AminoRoute variables to no longer be prefixed by signature type.
  504. * Blockchain Protocol
  505. - [state] [\#1815](https://github.com/tendermint/tendermint/issues/1815) Validator set changes are now delayed by one block (!)
  506. - Add NextValidatorSet to State, changes on-disk representation of state
  507. - [state] [\#2184](https://github.com/tendermint/tendermint/issues/2184) Enforce ConsensusParams.BlockSize.MaxBytes (See
  508. [ADR-020](https://github.com/tendermint/tendermint/blob/develop/docs/architecture/adr-020-block-size.md)).
  509. - Remove ConsensusParams.BlockSize.MaxTxs
  510. - Introduce maximum sizes for all components of a block, including ChainID
  511. - [types] Updates to the block Header:
  512. - [\#1815](https://github.com/tendermint/tendermint/issues/1815) NextValidatorsHash - hash of the validator set for the next block,
  513. so the current validators actually sign over the hash for the new
  514. validators
  515. - [\#2106](https://github.com/tendermint/tendermint/issues/2106) ProposerAddress - address of the block's original proposer
  516. - [consensus] [\#2203](https://github.com/tendermint/tendermint/issues/2203) Implement BFT time
  517. - Timestamp in block must be monotonic and equal the median of timestamps in block's LastCommit
  518. - [crypto] [\#2239](https://github.com/tendermint/tendermint/issues/2239) Secp256k1 signature changes (See
  519. [ADR-014](https://github.com/tendermint/tendermint/blob/develop/docs/architecture/adr-014-secp-malleability.md)):
  520. - format changed from DER to `r || s`, both little endian encoded as 32 bytes.
  521. - malleability removed by requiring `s` to be in canonical form.
  522. * P2P Protocol
  523. - [p2p] [\#2263](https://github.com/tendermint/tendermint/issues/2263) Update secret connection to use a little endian encoded nonce
  524. - [blockchain] [\#2213](https://github.com/tendermint/tendermint/issues/2213) Fix Amino routes for blockchain reactor messages
  525. (@peerlink)
  526. FEATURES:
  527. - [types] [\#2015](https://github.com/tendermint/tendermint/issues/2015) Allow genesis file to have 0 validators (@b00f)
  528. - Initial validator set can be determined by the app in ResponseInitChain
  529. - [rpc] [\#2161](https://github.com/tendermint/tendermint/issues/2161) New event `ValidatorSetUpdates` for when the validator set changes
  530. - [crypto/multisig] [\#2164](https://github.com/tendermint/tendermint/issues/2164) Introduce multisig pubkey and signature format
  531. - [libs/db] [\#2293](https://github.com/tendermint/tendermint/issues/2293) Allow passing options through when creating instances of leveldb dbs
  532. IMPROVEMENTS:
  533. - [docs] Lint documentation with `write-good` and `stop-words`.
  534. - [docs] [\#2249](https://github.com/tendermint/tendermint/issues/2249) Refactor, deduplicate, and improve the ABCI docs and spec (with thanks to @ttmc).
  535. - [scripts] [\#2196](https://github.com/tendermint/tendermint/issues/2196) Added json2wal tool, which is supposed to help our users restore (@bradyjoestar)
  536. corrupted WAL files and compose test WAL files (@bradyjoestar)
  537. - [mempool] [\#2234](https://github.com/tendermint/tendermint/issues/2234) Now stores txs by hash inside of the cache, to mitigate memory leakage
  538. - [mempool] [\#2166](https://github.com/tendermint/tendermint/issues/2166) Set explicit capacity for map when updating txs (@bluele)
  539. BUG FIXES:
  540. - [config] [\#2284](https://github.com/tendermint/tendermint/issues/2284) Replace `db_path` with `db_dir` from automatically generated configuration files.
  541. - [mempool] [\#2188](https://github.com/tendermint/tendermint/issues/2188) Fix OOM issue from cache map and list getting out of sync
  542. - [state] [\#2051](https://github.com/tendermint/tendermint/issues/2051) KV store index supports searching by `tx.height` (@ackratos)
  543. - [rpc] [\#2327](https://github.com/tendermint/tendermint/issues/2327) `/dial_peers` does not try to dial existing peers
  544. - [node] [\#2323](https://github.com/tendermint/tendermint/issues/2323) Filter empty strings from config lists (@james-ray)
  545. - [abci/client] [\#2236](https://github.com/tendermint/tendermint/issues/2236) Fix closing GRPC connection (@bradyjoestar)
  546. ## 0.23.1
  547. *August 22nd, 2018*
  548. BUG FIXES:
  549. - [libs/autofile] [\#2261](https://github.com/tendermint/tendermint/issues/2261) Fix log rotation so it actually happens.
  550. - Fixes issues with consensus WAL growing unbounded ala [\#2259](https://github.com/tendermint/tendermint/issues/2259)
  551. ## 0.23.0
  552. *August 5th, 2018*
  553. This release includes breaking upgrades in our P2P encryption,
  554. some ABCI messages, and how we encode time and signatures.
  555. A few more changes are still coming to the Header, ABCI,
  556. and validator set handling to better support light clients, BFT time, and
  557. upgrades. Most notably, validator set changes will be delayed by one block (see
  558. [#1815][i1815]).
  559. We also removed `make ensure_deps` in favour of `make get_vendor_deps`.
  560. BREAKING CHANGES:
  561. - [abci] Changed time format from int64 to google.protobuf.Timestamp
  562. - [abci] Changed Validators to LastCommitInfo in RequestBeginBlock
  563. - [abci] Removed Fee from ResponseDeliverTx and ResponseCheckTx
  564. - [crypto] Switch crypto.Signature from interface to []byte for space efficiency
  565. [#2128](https://github.com/tendermint/tendermint/pull/2128)
  566. - NOTE: this means signatures no longer have the prefix bytes in Amino
  567. binary nor the `type` field in Amino JSON. They're just bytes.
  568. - [p2p] Remove salsa and ripemd primitives, in favor of using chacha as a stream cipher, and hkdf [#2054](https://github.com/tendermint/tendermint/pull/2054)
  569. - [tools] Removed `make ensure_deps` in favor of `make get_vendor_deps`
  570. - [types] CanonicalTime uses nanoseconds instead of clipping to ms
  571. - breaks serialization/signing of all messages with a timestamp
  572. FEATURES:
  573. - [tools] Added `make check_dep`
  574. - ensures gopkg.lock is synced with gopkg.toml
  575. - ensures no branches are used in the gopkg.toml
  576. IMPROVEMENTS:
  577. - [blockchain] Improve fast-sync logic
  578. [#1805](https://github.com/tendermint/tendermint/pull/1805)
  579. - tweak params
  580. - only process one block at a time to avoid starving
  581. - [common] bit array functions which take in another parameter are now thread safe
  582. - [crypto] Switch hkdfchachapoly1305 to xchachapoly1305
  583. - [p2p] begin connecting to peers as soon a seed node provides them to you ([#2093](https://github.com/tendermint/tendermint/issues/2093))
  584. BUG FIXES:
  585. - [common] Safely handle cases where atomic write files already exist [#2109](https://github.com/tendermint/tendermint/issues/2109)
  586. - [privval] fix a deadline for accepting new connections in socket private
  587. validator.
  588. - [p2p] Allow startup if a configured seed node's IP can't be resolved ([#1716](https://github.com/tendermint/tendermint/issues/1716))
  589. - [node] Fully exit when CTRL-C is pressed even if consensus state panics [#2072](https://github.com/tendermint/tendermint/issues/2072)
  590. [i1815]: https://github.com/tendermint/tendermint/pull/1815
  591. ## 0.22.8
  592. *July 26th, 2018*
  593. BUG FIXES
  594. - [consensus, blockchain] Fix 0.22.7 below.
  595. ## 0.22.7
  596. *July 26th, 2018*
  597. BUG FIXES
  598. - [consensus, blockchain] Register the Evidence interface so it can be
  599. marshalled/unmarshalled by the blockchain and consensus reactors
  600. ## 0.22.6
  601. *July 24th, 2018*
  602. BUG FIXES
  603. - [rpc] Fix `/blockchain` endpoint
  604. - (#2049) Fix OOM attack by returning error on negative input
  605. - Fix result length to have max 20 (instead of 21) block metas
  606. - [rpc] Validate height is non-negative in `/abci_query`
  607. - [consensus] (#2050) Include evidence in proposal block parts (previously evidence was
  608. not being included in blocks!)
  609. - [p2p] (#2046) Close rejected inbound connections so file descriptor doesn't
  610. leak
  611. - [Gopkg] (#2053) Fix versions in the toml
  612. ## 0.22.5
  613. *July 23th, 2018*
  614. BREAKING CHANGES:
  615. - [crypto] Refactor `tendermint/crypto` into many subpackages
  616. - [libs/common] remove exponentially distributed random numbers
  617. IMPROVEMENTS:
  618. - [abci, libs/common] Generated gogoproto static marshaller methods
  619. - [config] Increase default send/recv rates to 5 mB/s
  620. - [p2p] reject addresses coming from private peers
  621. - [p2p] allow persistent peers to be private
  622. BUG FIXES:
  623. - [mempool] fixed a race condition when `create_empty_blocks=false` where a
  624. transaction is published at an old height.
  625. - [p2p] dial external IP setup by `persistent_peers`, not internal NAT IP
  626. - [rpc] make `/status` RPC endpoint resistant to consensus halt
  627. ## 0.22.4
  628. *July 14th, 2018*
  629. BREAKING CHANGES:
  630. - [genesis] removed deprecated `app_options` field.
  631. - [types] Genesis.AppStateJSON -> Genesis.AppState
  632. FEATURES:
  633. - [tools] Merged in from github.com/tendermint/tools
  634. BUG FIXES:
  635. - [tools/tm-bench] Various fixes
  636. - [consensus] Wait for WAL to stop on shutdown
  637. - [abci] Fix #1891, pending requests cannot hang when abci server dies.
  638. Previously a crash in BeginBlock could leave tendermint in broken state.
  639. ## 0.22.3
  640. *July 10th, 2018*
  641. IMPROVEMENTS
  642. - Update dependencies
  643. * pin all values in Gopkg.toml to version or commit
  644. * update golang/protobuf to v1.1.0
  645. ## 0.22.2
  646. *July 10th, 2018*
  647. IMPROVEMENTS
  648. - More cleanup post repo merge!
  649. - [docs] Include `ecosystem.json` and `tendermint-bft.md` from deprecated `aib-data` repository.
  650. - [config] Add `instrumentation.max_open_connections`, which limits the number
  651. of requests in flight to Prometheus server (if enabled). Default: 3.
  652. BUG FIXES
  653. - [rpc] Allow unquoted integers in requests
  654. - NOTE: this is only for URI requests. JSONRPC requests and all responses
  655. will use quoted integers (the proto3 JSON standard).
  656. - [consensus] Fix halt on shutdown
  657. ## 0.22.1
  658. *July 5th, 2018*
  659. IMPROVEMENTS
  660. * Cleanup post repo-merge.
  661. * [docs] Various improvements.
  662. BUG FIXES
  663. * [state] Return error when EndBlock returns a 0-power validator that isn't
  664. already in the validator set.
  665. * [consensus] Shut down WAL properly.
  666. ## 0.22.0
  667. *July 2nd, 2018*
  668. BREAKING CHANGES:
  669. - [config]
  670. * Remove `max_block_size_txs` and `max_block_size_bytes` in favor of
  671. consensus params from the genesis file.
  672. * Rename `skip_upnp` to `upnp`, and turn it off by default.
  673. * Change `max_packet_msg_size` back to `max_packet_msg_payload_size`
  674. - [rpc]
  675. * All integers are encoded as strings (part of the update for Amino v0.10.1)
  676. * `syncing` is now called `catching_up`
  677. - [types] Update Amino to v0.10.1
  678. * Amino is now fully proto3 compatible for the basic types
  679. * JSON-encoded types now use the type name instead of the prefix bytes
  680. * Integers are encoded as strings
  681. - [crypto] Update go-crypto to v0.10.0 and merge into `crypto`
  682. * privKey.Sign returns error.
  683. * ed25519 address changed to the first 20-bytes of the SHA256 of the raw pubkey bytes
  684. * `tmlibs/merkle` -> `crypto/merkle`. Uses SHA256 instead of RIPEMD160
  685. - [tmlibs] Update to v0.9.0 and merge into `libs`
  686. * remove `merkle` package (moved to `crypto/merkle`)
  687. FEATURES
  688. - [cmd] Added metrics (served under `/metrics` using a Prometheus client;
  689. disabled by default). See the new `instrumentation` section in the config and
  690. [metrics](https://tendermint.readthedocs.io/projects/tools/en/develop/metrics.html)
  691. guide.
  692. - [p2p] Add IPv6 support to peering.
  693. - [p2p] Add `external_address` to config to allow specifying the address for
  694. peers to dial
  695. IMPROVEMENT
  696. - [rpc/client] Supports https and wss now.
  697. - [crypto] Make public key size into public constants
  698. - [mempool] Log tx hash, not entire tx
  699. - [abci] Merged in github.com/tendermint/abci
  700. - [crypto] Merged in github.com/tendermint/go-crypto
  701. - [libs] Merged in github.com/tendermint/tmlibs
  702. - [docs] Move from .rst to .md
  703. BUG FIXES:
  704. - [rpc] Limit maximum number of HTTP/WebSocket connections
  705. (`rpc.max_open_connections`) and gRPC connections
  706. (`rpc.grpc_max_open_connections`). Check out "Running In Production" guide if
  707. you want to increase them.
  708. - [rpc] Limit maximum request body size to 1MB (header is limited to 1MB).
  709. - [consensus] Fix a halting bug where `create_empty_blocks=false`
  710. - [p2p] Fix panic in seed mode
  711. ## 0.21.0
  712. *June 21th, 2018*
  713. BREAKING CHANGES
  714. - [config] Change default ports from 4665X to 2665X. Ports over 32768 are
  715. ephemeral and reserved for use by the kernel.
  716. - [cmd] `unsafe_reset_all` removes the addrbook.json
  717. IMPROVEMENT
  718. - [pubsub] Set default capacity to 0
  719. - [docs] Various improvements
  720. BUG FIXES
  721. - [consensus] Fix an issue where we don't make blocks after `fast_sync` when `create_empty_blocks=false`
  722. - [mempool] Fix #1761 where we don't process txs if `cache_size=0`
  723. - [rpc] Fix memory leak in Websocket (when using `/subscribe` method)
  724. - [config] Escape paths in config - fixes config paths on Windows
  725. ## 0.20.0
  726. *June 6th, 2018*
  727. This is the first in a series of breaking releases coming to Tendermint after
  728. soliciting developer feedback and conducting security audits.
  729. This release does not break any blockchain data structures or
  730. protocols other than the ABCI messages between Tendermint and the application.
  731. Applications that upgrade for ABCI v0.11.0 should be able to continue running Tendermint
  732. v0.20.0 on blockchains created with v0.19.X
  733. BREAKING CHANGES
  734. - [abci] Upgrade to
  735. [v0.11.0](https://github.com/tendermint/abci/blob/master/CHANGELOG.md#0110)
  736. - [abci] Change Query path for filtering peers by node ID from
  737. `p2p/filter/pubkey/<id>` to `p2p/filter/id/<id>`
  738. ## 0.19.9
  739. *June 5th, 2018*
  740. BREAKING CHANGES
  741. - [types/priv_validator] Moved to top level `privval` package
  742. FEATURES
  743. - [config] Collapse PeerConfig into P2PConfig
  744. - [docs] Add quick-install script
  745. - [docs/spec] Add table of Amino prefixes
  746. BUG FIXES
  747. - [rpc] Return 404 for unknown endpoints
  748. - [consensus] Flush WAL on stop
  749. - [evidence] Don't send evidence to peers that are behind
  750. - [p2p] Fix memory leak on peer disconnects
  751. - [rpc] Fix panic when `per_page=0`
  752. ## 0.19.8
  753. *June 4th, 2018*
  754. BREAKING:
  755. - [p2p] Remove `auth_enc` config option, peer connections are always auth
  756. encrypted. Technically a breaking change but seems no one was using it and
  757. arguably a bug fix :)
  758. BUG FIXES
  759. - [mempool] Fix deadlock under high load when `skip_timeout_commit=true` and
  760. `create_empty_blocks=false`
  761. ## 0.19.7
  762. *May 31st, 2018*
  763. BREAKING:
  764. - [libs/pubsub] TagMap#Get returns a string value
  765. - [libs/pubsub] NewTagMap accepts a map of strings
  766. FEATURES
  767. - [rpc] the RPC documentation is now published to https://tendermint.github.io/slate
  768. - [p2p] AllowDuplicateIP config option to refuse connections from same IP.
  769. - true by default for now, false by default in next breaking release
  770. - [docs] Add docs for query, tx indexing, events, pubsub
  771. - [docs] Add some notes about running Tendermint in production
  772. IMPROVEMENTS:
  773. - [consensus] Consensus reactor now receives events from a separate synchronous event bus,
  774. which is not dependant on external RPC load
  775. - [consensus/wal] do not look for height in older files if we've seen height - 1
  776. - [docs] Various cleanup and link fixes
  777. ## 0.19.6
  778. *May 29th, 2018*
  779. BUG FIXES
  780. - [blockchain] Fix fast-sync deadlock during high peer turnover
  781. BUG FIX:
  782. - [evidence] Dont send peers evidence from heights they haven't synced to yet
  783. - [p2p] Refuse connections to more than one peer with the same IP
  784. - [docs] Various fixes
  785. ## 0.19.5
  786. *May 20th, 2018*
  787. BREAKING CHANGES
  788. - [rpc/client] TxSearch and UnconfirmedTxs have new arguments (see below)
  789. - [rpc/client] TxSearch returns ResultTxSearch
  790. - [version] Breaking changes to Go APIs will not be reflected in breaking
  791. version change, but will be included in changelog.
  792. FEATURES
  793. - [rpc] `/tx_search` takes `page` (starts at 1) and `per_page` (max 100, default 30) args to paginate results
  794. - [rpc] `/unconfirmed_txs` takes `limit` (max 100, default 30) arg to limit the output
  795. - [config] `mempool.size` and `mempool.cache_size` options
  796. IMPROVEMENTS
  797. - [docs] Lots of updates
  798. - [consensus] Only Fsync() the WAL before executing msgs from ourselves
  799. BUG FIXES
  800. - [mempool] Enforce upper bound on number of transactions
  801. ## 0.19.4 (May 17th, 2018)
  802. IMPROVEMENTS
  803. - [state] Improve tx indexing by using batches
  804. - [consensus, state] Improve logging (more consensus logs, fewer tx logs)
  805. - [spec] Moved to `docs/spec` (TODO cleanup the rest of the docs ...)
  806. BUG FIXES
  807. - [consensus] Fix issue #1575 where a late proposer can get stuck
  808. ## 0.19.3 (May 14th, 2018)
  809. FEATURES
  810. - [rpc] New `/consensus_state` returns just the votes seen at the current height
  811. IMPROVEMENTS
  812. - [rpc] Add stringified votes and fraction of power voted to `/dump_consensus_state`
  813. - [rpc] Add PeerStateStats to `/dump_consensus_state`
  814. BUG FIXES
  815. - [cmd] Set GenesisTime during `tendermint init`
  816. - [consensus] fix ValidBlock rules
  817. ## 0.19.2 (April 30th, 2018)
  818. FEATURES:
  819. - [p2p] Allow peers with different Minor versions to connect
  820. - [rpc] `/net_info` includes `n_peers`
  821. IMPROVEMENTS:
  822. - [p2p] Various code comments, cleanup, error types
  823. - [p2p] Change some Error logs to Debug
  824. BUG FIXES:
  825. - [p2p] Fix reconnect to persistent peer when first dial fails
  826. - [p2p] Validate NodeInfo.ListenAddr
  827. - [p2p] Only allow (MaxNumPeers - MaxNumOutboundPeers) inbound peers
  828. - [p2p/pex] Limit max msg size to 64kB
  829. - [p2p] Fix panic when pex=false
  830. - [p2p] Allow multiple IPs per ID in AddrBook
  831. - [p2p] Fix before/after bugs in addrbook isBad()
  832. ## 0.19.1 (April 27th, 2018)
  833. Note this release includes some small breaking changes in the RPC and one in the
  834. config that are really bug fixes. v0.19.1 will work with existing chains, and make Tendermint
  835. easier to use and debug. With <3
  836. BREAKING (MINOR)
  837. - [config] Removed `wal_light` setting. If you really needed this, let us know
  838. FEATURES:
  839. - [networks] moved in tooling from devops repo: terraform and ansible scripts for deploying testnets !
  840. - [cmd] Added `gen_node_key` command
  841. BUG FIXES
  842. Some of these are breaking in the RPC response, but they're really bugs!
  843. - [spec] Document address format and pubkey encoding pre and post Amino
  844. - [rpc] Lower case JSON field names
  845. - [rpc] Fix missing entries, improve, and lower case the fields in `/dump_consensus_state`
  846. - [rpc] Fix NodeInfo.Channels format to hex
  847. - [rpc] Add Validator address to `/status`
  848. - [rpc] Fix `prove` in ABCIQuery
  849. - [cmd] MarshalJSONIndent on init
  850. ## 0.19.0 (April 13th, 2018)
  851. BREAKING:
  852. - [cmd] improved `testnet` command; now it can fill in `persistent_peers` for you in the config file and much more (see `tendermint testnet --help` for details)
  853. - [cmd] `show_node_id` now returns an error if there is no node key
  854. - [rpc]: changed the output format for the `/status` endpoint (see https://godoc.org/github.com/tendermint/tendermint/rpc/core#Status)
  855. Upgrade from go-wire to go-amino. This is a sweeping change that breaks everything that is
  856. serialized to disk or over the network.
  857. See github.com/tendermint/go-amino for details on the new format.
  858. See `scripts/wire2amino.go` for a tool to upgrade
  859. genesis/priv_validator/node_key JSON files.
  860. FEATURES
  861. - [test] docker-compose for local testnet setup (thanks Greg!)
  862. ## 0.18.0 (April 6th, 2018)
  863. BREAKING:
  864. - [types] Merkle tree uses different encoding for varints (see tmlibs v0.8.0)
  865. - [types] ValidtorSet.GetByAddress returns -1 if no validator found
  866. - [p2p] require all addresses come with an ID no matter what
  867. - [rpc] Listening address must contain tcp:// or unix:// prefix
  868. FEATURES:
  869. - [rpc] StartHTTPAndTLSServer (not used yet)
  870. - [rpc] Include validator's voting power in `/status`
  871. - [rpc] `/tx` and `/tx_search` responses now include the transaction hash
  872. - [rpc] Include peer NodeIDs in `/net_info`
  873. IMPROVEMENTS:
  874. - [config] trim whitespace from elements of lists (like `persistent_peers`)
  875. - [rpc] `/tx_search` results are sorted by height
  876. - [p2p] do not try to connect to ourselves (ok, maybe only once)
  877. - [p2p] seeds respond with a bias towards good peers
  878. BUG FIXES:
  879. - [rpc] fix subscribing using an abci.ResponseDeliverTx tag
  880. - [rpc] fix tx_indexers matchRange
  881. - [rpc] fix unsubscribing (see tmlibs v0.8.0)
  882. ## 0.17.1 (March 27th, 2018)
  883. BUG FIXES:
  884. - [types] Actually support `app_state` in genesis as `AppStateJSON`
  885. ## 0.17.0 (March 27th, 2018)
  886. BREAKING:
  887. - [types] WriteSignBytes -> SignBytes
  888. IMPROVEMENTS:
  889. - [all] renamed `dummy` (`persistent_dummy`) to `kvstore` (`persistent_kvstore`) (name "dummy" is deprecated and will not work in the next breaking release)
  890. - [docs] note on determinism (docs/determinism.rst)
  891. - [genesis] `app_options` field is deprecated. please rename it to `app_state` in your genesis file(s). `app_options` will not work in the next breaking release
  892. - [p2p] dial seeds directly without potential peers
  893. - [p2p] exponential backoff for addrs in the address book
  894. - [p2p] mark peer as good if it contributed enough votes or block parts
  895. - [p2p] stop peer if it sends incorrect data, msg to unknown channel, msg we did not expect
  896. - [p2p] when `auth_enc` is true, all dialed peers must have a node ID in their address
  897. - [spec] various improvements
  898. - switched from glide to dep internally for package management
  899. - [wire] prep work for upgrading to new go-wire (which is now called go-amino)
  900. FEATURES:
  901. - [config] exposed `auth_enc` flag to enable/disable encryption
  902. - [config] added the `--p2p.private_peer_ids` flag and `PrivatePeerIDs` config variable (see config for description)
  903. - [rpc] added `/health` endpoint, which returns empty result for now
  904. - [types/priv_validator] new format and socket client, allowing for remote signing
  905. BUG FIXES:
  906. - [consensus] fix liveness bug by introducing ValidBlock mechanism
  907. ## 0.16.0 (February 20th, 2018)
  908. BREAKING CHANGES:
  909. - [config] use $TMHOME/config for all config and json files
  910. - [p2p] old `--p2p.seeds` is now `--p2p.persistent_peers` (persistent peers to which TM will always connect to)
  911. - [p2p] now `--p2p.seeds` only used for getting addresses (if addrbook is empty; not persistent)
  912. - [p2p] NodeInfo: remove RemoteAddr and add Channels
  913. - we must have at least one overlapping channel with peer
  914. - we only send msgs for channels the peer advertised
  915. - [p2p/conn] pong timeout
  916. - [lite] comment out IAVL related code
  917. FEATURES:
  918. - [p2p] added new `/dial_peers&persistent=_` **unsafe** endpoint
  919. - [p2p] persistent node key in `$THMHOME/config/node_key.json`
  920. - [p2p] introduce peer ID and authenticate peers by ID using addresses like `ID@IP:PORT`
  921. - [p2p/pex] new seed mode crawls the network and serves as a seed.
  922. - [config] MempoolConfig.CacheSize
  923. - [config] P2P.SeedMode (`--p2p.seed_mode`)
  924. IMPROVEMENT:
  925. - [p2p/pex] stricter rules in the PEX reactor for better handling of abuse
  926. - [p2p] various improvements to code structure including subpackages for `pex` and `conn`
  927. - [docs] new spec!
  928. - [all] speed up the tests!
  929. BUG FIX:
  930. - [blockchain] StopPeerForError on timeout
  931. - [consensus] StopPeerForError on a bad Maj23 message
  932. - [state] flush mempool conn before calling commit
  933. - [types] fix priv val signing things that only differ by timestamp
  934. - [mempool] fix memory leak causing zombie peers
  935. - [p2p/conn] fix potential deadlock
  936. ## 0.15.0 (December 29, 2017)
  937. BREAKING CHANGES:
  938. - [p2p] enable the Peer Exchange reactor by default
  939. - [types] add Timestamp field to Proposal/Vote
  940. - [types] add new fields to Header: TotalTxs, ConsensusParamsHash, LastResultsHash, EvidenceHash
  941. - [types] add Evidence to Block
  942. - [types] simplify ValidateBasic
  943. - [state] updates to support changes to the header
  944. - [state] Enforce <1/3 of validator set can change at a time
  945. FEATURES:
  946. - [state] Send indices of absent validators and addresses of byzantine validators in BeginBlock
  947. - [state] Historical ConsensusParams and ABCIResponses
  948. - [docs] Specification for the base Tendermint data structures.
  949. - [evidence] New evidence reactor for gossiping and managing evidence
  950. - [rpc] `/block_results?height=X` returns the DeliverTx results for a given height.
  951. IMPROVEMENTS:
  952. - [consensus] Better handling of corrupt WAL file
  953. BUG FIXES:
  954. - [lite] fix race
  955. - [state] validate block.Header.ValidatorsHash
  956. - [p2p] allow seed addresses to be prefixed with eg. `tcp://`
  957. - [p2p] use consistent key to refer to peers so we dont try to connect to existing peers
  958. - [cmd] fix `tendermint init` to ignore files that are there and generate files that aren't.
  959. ## 0.14.0 (December 11, 2017)
  960. BREAKING CHANGES:
  961. - consensus/wal: removed separator
  962. - rpc/client: changed Subscribe/Unsubscribe/UnsubscribeAll funcs signatures to be identical to event bus.
  963. FEATURES:
  964. - new `tendermint lite` command (and `lite/proxy` pkg) for running a light-client RPC proxy.
  965. NOTE it is currently insecure and its APIs are not yet covered by semver
  966. IMPROVEMENTS:
  967. - rpc/client: can act as event bus subscriber (See https://github.com/tendermint/tendermint/issues/945).
  968. - p2p: use exponential backoff from seconds to hours when attempting to reconnect to persistent peer
  969. - config: moniker defaults to the machine's hostname instead of "anonymous"
  970. BUG FIXES:
  971. - p2p: no longer exit if one of the seed addresses is incorrect
  972. ## 0.13.0 (December 6, 2017)
  973. BREAKING CHANGES:
  974. - abci: update to v0.8 using gogo/protobuf; includes tx tags, vote info in RequestBeginBlock, data.Bytes everywhere, use int64, etc.
  975. - types: block heights are now `int64` everywhere
  976. - types & node: EventSwitch and EventCache have been replaced by EventBus and EventBuffer; event types have been overhauled
  977. - node: EventSwitch methods now refer to EventBus
  978. - rpc/lib/types: RPCResponse is no longer a pointer; WSRPCConnection interface has been modified
  979. - rpc/client: WaitForOneEvent takes an EventsClient instead of types.EventSwitch
  980. - rpc/client: Add/RemoveListenerForEvent are now Subscribe/Unsubscribe
  981. - rpc/core/types: ResultABCIQuery wraps an abci.ResponseQuery
  982. - rpc: `/subscribe` and `/unsubscribe` take `query` arg instead of `event`
  983. - rpc: `/status` returns the LatestBlockTime in human readable form instead of in nanoseconds
  984. - mempool: cached transactions return an error instead of an ABCI response with BadNonce
  985. FEATURES:
  986. - rpc: new `/unsubscribe_all` WebSocket RPC endpoint
  987. - rpc: new `/tx_search` endpoint for filtering transactions by more complex queries
  988. - p2p/trust: new trust metric for tracking peers. See ADR-006
  989. - config: TxIndexConfig allows to set what DeliverTx tags to index
  990. IMPROVEMENTS:
  991. - New asynchronous events system using `tmlibs/pubsub`
  992. - logging: Various small improvements
  993. - consensus: Graceful shutdown when app crashes
  994. - tests: Fix various non-deterministic errors
  995. - p2p: more defensive programming
  996. BUG FIXES:
  997. - consensus: fix panic where prs.ProposalBlockParts is not initialized
  998. - p2p: fix panic on bad channel
  999. ## 0.12.1 (November 27, 2017)
  1000. BUG FIXES:
  1001. - upgrade tmlibs dependency to enable Windows builds for Tendermint
  1002. ## 0.12.0 (October 27, 2017)
  1003. BREAKING CHANGES:
  1004. - rpc/client: websocket ResultsCh and ErrorsCh unified in ResponsesCh.
  1005. - rpc/client: ABCIQuery no longer takes `prove`
  1006. - state: remove GenesisDoc from state.
  1007. - consensus: new binary WAL format provides efficiency and uses checksums to detect corruption
  1008. - use scripts/wal2json to convert to json for debugging
  1009. FEATURES:
  1010. - new `Verifiers` pkg contains the tendermint light-client library (name subject to change)!
  1011. - rpc: `/genesis` includes the `app_options` .
  1012. - rpc: `/abci_query` takes an additional `height` parameter to support historical queries.
  1013. - rpc/client: new ABCIQueryWithOptions supports options like `trusted` (set false to get a proof) and `height` to query a historical height.
  1014. IMPROVEMENTS:
  1015. - rpc: `/genesis` result includes `app_options`
  1016. - rpc/lib/client: add jitter to reconnects.
  1017. - rpc/lib/types: `RPCError` satisfies the `error` interface.
  1018. BUG FIXES:
  1019. - rpc/client: fix ws deadlock after stopping
  1020. - blockchain: fix panic on AddBlock when peer is nil
  1021. - mempool: fix sending on TxsAvailable when a tx has been invalidated
  1022. - consensus: dont run WAL catchup if we fast synced
  1023. ## 0.11.1 (October 10, 2017)
  1024. IMPROVEMENTS:
  1025. - blockchain/reactor: respondWithNoResponseMessage for missing height
  1026. BUG FIXES:
  1027. - rpc: fixed client WebSocket timeout
  1028. - rpc: client now resubscribes on reconnection
  1029. - rpc: fix panics on missing params
  1030. - rpc: fix `/dump_consensus_state` to have normal json output (NOTE: technically breaking, but worth a bug fix label)
  1031. - types: fixed out of range error in VoteSet.addVote
  1032. - consensus: fix wal autofile via https://github.com/tendermint/tmlibs/blob/master/CHANGELOG.md#032-october-2-2017
  1033. ## 0.11.0 (September 22, 2017)
  1034. BREAKING:
  1035. - genesis file: validator `amount` is now `power`
  1036. - abci: Info, BeginBlock, InitChain all take structs
  1037. - rpc: various changes to match JSONRPC spec (http://www.jsonrpc.org/specification), including breaking ones:
  1038. - requests that previously returned HTTP code 4XX now return 200 with an error code in the JSONRPC.
  1039. - `rpctypes.RPCResponse` uses new `RPCError` type instead of `string`.
  1040. - cmd: if there is no genesis, exit immediately instead of waiting around for one to show.
  1041. - types: `Signer.Sign` returns an error.
  1042. - state: every validator set change is persisted to disk, which required some changes to the `State` structure.
  1043. - p2p: new `p2p.Peer` interface used for all reactor methods (instead of `*p2p.Peer` struct).
  1044. FEATURES:
  1045. - rpc: `/validators?height=X` allows querying of validators at previous heights.
  1046. - rpc: Leaving the `height` param empty for `/block`, `/validators`, and `/commit` will return the value for the latest height.
  1047. IMPROVEMENTS:
  1048. - docs: Moved all docs from the website and tools repo in, converted to `.rst`, and cleaned up for presentation on `tendermint.readthedocs.io`
  1049. BUG FIXES:
  1050. - fix WAL openning issue on Windows
  1051. ## 0.10.4 (September 5, 2017)
  1052. IMPROVEMENTS:
  1053. - docs: Added Slate docs to each rpc function (see rpc/core)
  1054. - docs: Ported all website docs to Read The Docs
  1055. - config: expose some p2p params to tweak performance: RecvRate, SendRate, and MaxMsgPacketPayloadSize
  1056. - rpc: Upgrade the websocket client and server, including improved auto reconnect, and proper ping/pong
  1057. BUG FIXES:
  1058. - consensus: fix panic on getVoteBitArray
  1059. - consensus: hang instead of panicking on byzantine consensus failures
  1060. - cmd: dont load config for version command
  1061. ## 0.10.3 (August 10, 2017)
  1062. FEATURES:
  1063. - control over empty block production:
  1064. - new flag, `--consensus.create_empty_blocks`; when set to false, blocks are only created when there are txs or when the AppHash changes.
  1065. - new config option, `consensus.create_empty_blocks_interval`; an empty block is created after this many seconds.
  1066. - in normal operation, `create_empty_blocks = true` and `create_empty_blocks_interval = 0`, so blocks are being created all the time (as in all previous versions of tendermint). The number of empty blocks can be reduced by increasing `create_empty_blocks_interval` or by setting `create_empty_blocks = false`.
  1067. - new `TxsAvailable()` method added to Mempool that returns a channel which fires when txs are available.
  1068. - new heartbeat message added to consensus reactor to notify peers that a node is waiting for txs before entering propose step.
  1069. - rpc: Add `syncing` field to response returned by `/status`. Is `true` while in fast-sync mode.
  1070. IMPROVEMENTS:
  1071. - various improvements to documentation and code comments
  1072. BUG FIXES:
  1073. - mempool: pass height into constructor so it doesn't always start at 0
  1074. ## 0.10.2 (July 10, 2017)
  1075. FEATURES:
  1076. - Enable lower latency block commits by adding consensus reactor sleep durations and p2p flush throttle timeout to the config
  1077. IMPROVEMENTS:
  1078. - More detailed logging in the consensus reactor and state machine
  1079. - More in-code documentation for many exposed functions, especially in consensus/reactor.go and p2p/switch.go
  1080. - Improved readability for some function definitions and code blocks with long lines
  1081. ## 0.10.1 (June 28, 2017)
  1082. FEATURES:
  1083. - Use `--trace` to get stack traces for logged errors
  1084. - types: GenesisDoc.ValidatorHash returns the hash of the genesis validator set
  1085. - types: GenesisDocFromFile parses a GenesiDoc from a JSON file
  1086. IMPROVEMENTS:
  1087. - Add a Code of Conduct
  1088. - Variety of improvements as suggested by `megacheck` tool
  1089. - rpc: deduplicate tests between rpc/client and rpc/tests
  1090. - rpc: addresses without a protocol prefix default to `tcp://`. `http://` is also accepted as an alias for `tcp://`
  1091. - cmd: commands are more easily reuseable from other tools
  1092. - DOCKER: automate build/push
  1093. BUG FIXES:
  1094. - Fix log statements using keys with spaces (logger does not currently support spaces)
  1095. - rpc: set logger on websocket connection
  1096. - rpc: fix ws connection stability by setting write deadline on pings
  1097. ## 0.10.0 (June 2, 2017)
  1098. Includes major updates to configuration, logging, and json serialization.
  1099. Also includes the Grand Repo-Merge of 2017.
  1100. BREAKING CHANGES:
  1101. - Config and Flags:
  1102. - The `config` map is replaced with a [`Config` struct](https://github.com/tendermint/tendermint/blob/master/config/config.go#L11),
  1103. containing substructs: `BaseConfig`, `P2PConfig`, `MempoolConfig`, `ConsensusConfig`, `RPCConfig`
  1104. - This affects the following flags:
  1105. - `--seeds` is now `--p2p.seeds`
  1106. - `--node_laddr` is now `--p2p.laddr`
  1107. - `--pex` is now `--p2p.pex`
  1108. - `--skip_upnp` is now `--p2p.skip_upnp`
  1109. - `--rpc_laddr` is now `--rpc.laddr`
  1110. - `--grpc_laddr` is now `--rpc.grpc_laddr`
  1111. - Any configuration option now within a substract must come under that heading in the `config.toml`, for instance:
  1112. ```
  1113. [p2p]
  1114. laddr="tcp://1.2.3.4:46656"
  1115. [consensus]
  1116. timeout_propose=1000
  1117. ```
  1118. - Use viper and `DefaultConfig() / TestConfig()` functions to handle defaults, and remove `config/tendermint` and `config/tendermint_test`
  1119. - Change some function and method signatures to
  1120. - Change some [function and method signatures](https://gist.github.com/ebuchman/640d5fc6c2605f73497992fe107ebe0b) accomodate new config
  1121. - Logger
  1122. - Replace static `log15` logger with a simple interface, and provide a new implementation using `go-kit`.
  1123. See our new [logging library](https://github.com/tendermint/tmlibs/log) and [blog post](https://tendermint.com/blog/abstracting-the-logger-interface-in-go) for more details
  1124. - Levels `warn` and `notice` are removed (you may need to change them in your `config.toml`!)
  1125. - Change some [function and method signatures](https://gist.github.com/ebuchman/640d5fc6c2605f73497992fe107ebe0b) to accept a logger
  1126. - JSON serialization:
  1127. - Replace `[TypeByte, Xxx]` with `{"type": "some-type", "data": Xxx}` in RPC and all `.json` files by using `go-wire/data`. For instance, a public key is now:
  1128. ```
  1129. "pub_key": {
  1130. "type": "ed25519",
  1131. "data": "83DDF8775937A4A12A2704269E2729FCFCD491B933C4B0A7FFE37FE41D7760D0"
  1132. }
  1133. ```
  1134. - Remove type information about RPC responses, so `[TypeByte, {"jsonrpc": "2.0", ... }]` is now just `{"jsonrpc": "2.0", ... }`
  1135. - Change `[]byte` to `data.Bytes` in all serialized types (for hex encoding)
  1136. - Lowercase the JSON tags in `ValidatorSet` fields
  1137. - Introduce `EventDataInner` for serializing events
  1138. - Other:
  1139. - Send InitChain message in handshake if `appBlockHeight == 0`
  1140. - Do not include the `Accum` field when computing the validator hash. This makes the ValidatorSetHash unique for a given validator set, rather than changing with every block (as the Accum changes)
  1141. - Unsafe RPC calls are not enabled by default. This includes `/dial_seeds`, and all calls prefixed with `unsafe`. Use the `--rpc.unsafe` flag to enable.
  1142. FEATURES:
  1143. - Per-module log levels. For instance, the new default is `state:info,*:error`, which means the `state` package logs at `info` level, and everything else logs at `error` level
  1144. - Log if a node is validator or not in every consensus round
  1145. - Use ldflags to set git hash as part of the version
  1146. - Ignore `address` and `pub_key` fields in `priv_validator.json` and overwrite them with the values derrived from the `priv_key`
  1147. IMPROVEMENTS:
  1148. - Merge `tendermint/go-p2p -> tendermint/tendermint/p2p` and `tendermint/go-rpc -> tendermint/tendermint/rpc/lib`
  1149. - Update paths for grand repo merge:
  1150. - `go-common -> tmlibs/common`
  1151. - `go-data -> go-wire/data`
  1152. - All other `go-` libs, except `go-crypto` and `go-wire`, are merged under `tmlibs`
  1153. - No global loggers (loggers are passed into constructors, or preferably set with a SetLogger method)
  1154. - Return HTTP status codes with errors for RPC responses
  1155. - Limit `/blockchain_info` call to return a maximum of 20 blocks
  1156. - Use `.Wrap()` and `.Unwrap()` instead of eg. `PubKeyS` for `go-crypto` types
  1157. - RPC JSON responses use pretty printing (via `json.MarshalIndent`)
  1158. - Color code different instances of the consensus for tests
  1159. - Isolate viper to `cmd/tendermint/commands` and do not read config from file for tests
  1160. ## 0.9.2 (April 26, 2017)
  1161. BUG FIXES:
  1162. - Fix bug in `ResetPrivValidator` where we were using the global config and log (causing external consumers, eg. basecoin, to fail).
  1163. ## 0.9.1 (April 21, 2017)
  1164. FEATURES:
  1165. - Transaction indexing - txs are indexed by their hash using a simple key-value store; easily extended to more advanced indexers
  1166. - New `/tx?hash=X` endpoint to query for transactions and their DeliverTx result by hash. Optionally returns a proof of the tx's inclusion in the block
  1167. - `tendermint testnet` command initializes files for a testnet
  1168. IMPROVEMENTS:
  1169. - CLI now uses Cobra framework
  1170. - TMROOT is now TMHOME (TMROOT will stop working in 0.10.0)
  1171. - `/broadcast_tx_XXX` also returns the Hash (can be used to query for the tx)
  1172. - `/broadcast_tx_commit` also returns the height the block was committed in
  1173. - ABCIResponses struct persisted to disk before calling Commit; makes handshake replay much cleaner
  1174. - WAL uses #ENDHEIGHT instead of #HEIGHT (#HEIGHT will stop working in 0.10.0)
  1175. - Peers included via `--seeds`, under `seeds` in the config, or in `/dial_seeds` are now persistent, and will be reconnected to if the connection breaks
  1176. BUG FIXES:
  1177. - Fix bug in fast-sync where we stop syncing after a peer is removed, even if they're re-added later
  1178. - Fix handshake replay to handle validator set changes and results of DeliverTx when we crash after app.Commit but before state.Save()
  1179. ## 0.9.0 (March 6, 2017)
  1180. BREAKING CHANGES:
  1181. - Update ABCI to v0.4.0, where Query is now `Query(RequestQuery) ResponseQuery`, enabling precise proofs at particular heights:
  1182. ```
  1183. message RequestQuery{
  1184. bytes data = 1;
  1185. string path = 2;
  1186. uint64 height = 3;
  1187. bool prove = 4;
  1188. }
  1189. message ResponseQuery{
  1190. CodeType code = 1;
  1191. int64 index = 2;
  1192. bytes key = 3;
  1193. bytes value = 4;
  1194. bytes proof = 5;
  1195. uint64 height = 6;
  1196. string log = 7;
  1197. }
  1198. ```
  1199. - `BlockMeta` data type unifies its Hash and PartSetHash under a `BlockID`:
  1200. ```
  1201. type BlockMeta struct {
  1202. BlockID BlockID `json:"block_id"` // the block hash and partsethash
  1203. Header *Header `json:"header"` // The block's Header
  1204. }
  1205. ```
  1206. - `ValidatorSet.Proposer` is exposed as a field and persisted with the `State`. Use `GetProposer()` to initialize or update after validator-set changes.
  1207. - `tendermint gen_validator` command output is now pure JSON
  1208. FEATURES:
  1209. - New RPC endpoint `/commit?height=X` returns header and commit for block at height `X`
  1210. - Client API for each endpoint, including mocks for testing
  1211. IMPROVEMENTS:
  1212. - `Node` is now a `BaseService`
  1213. - Simplified starting Tendermint in-process from another application
  1214. - Better organized Makefile
  1215. - Scripts for auto-building binaries across platforms
  1216. - Docker image improved, slimmed down (using Alpine), and changed from tendermint/tmbase to tendermint/tendermint
  1217. - New repo files: `CONTRIBUTING.md`, Github `ISSUE_TEMPLATE`, `CHANGELOG.md`
  1218. - Improvements on CircleCI for managing build/test artifacts
  1219. - Handshake replay is doen through the consensus package, possibly using a mockApp
  1220. - Graceful shutdown of RPC listeners
  1221. - Tests for the PEX reactor and DialSeeds
  1222. BUG FIXES:
  1223. - Check peer.Send for failure before updating PeerState in consensus
  1224. - Fix panic in `/dial_seeds` with invalid addresses
  1225. - Fix proposer selection logic in ValidatorSet by taking the address into account in the `accumComparable`
  1226. - Fix inconcistencies with `ValidatorSet.Proposer` across restarts by persisting it in the `State`
  1227. ## 0.8.0 (January 13, 2017)
  1228. BREAKING CHANGES:
  1229. - New data type `BlockID` to represent blocks:
  1230. ```
  1231. type BlockID struct {
  1232. Hash []byte `json:"hash"`
  1233. PartsHeader PartSetHeader `json:"parts"`
  1234. }
  1235. ```
  1236. - `Vote` data type now includes validator address and index:
  1237. ```
  1238. type Vote struct {
  1239. ValidatorAddress []byte `json:"validator_address"`
  1240. ValidatorIndex int `json:"validator_index"`
  1241. Height int `json:"height"`
  1242. Round int `json:"round"`
  1243. Type byte `json:"type"`
  1244. BlockID BlockID `json:"block_id"` // zero if vote is nil.
  1245. Signature crypto.Signature `json:"signature"`
  1246. }
  1247. ```
  1248. - Update TMSP to v0.3.0, where it is now called ABCI and AppendTx is DeliverTx
  1249. - Hex strings in the RPC are now "0x" prefixed
  1250. FEATURES:
  1251. - New message type on the ConsensusReactor, `Maj23Msg`, for peers to alert others they've seen a Maj23,
  1252. in order to track and handle conflicting votes intelligently to prevent Byzantine faults from causing halts:
  1253. ```
  1254. type VoteSetMaj23Message struct {
  1255. Height int
  1256. Round int
  1257. Type byte
  1258. BlockID types.BlockID
  1259. }
  1260. ```
  1261. - Configurable block part set size
  1262. - Validator set changes
  1263. - Optionally skip TimeoutCommit if we have all the votes
  1264. - Handshake between Tendermint and App on startup to sync latest state and ensure consistent recovery from crashes
  1265. - GRPC server for BroadcastTx endpoint
  1266. IMPROVEMENTS:
  1267. - Less verbose logging
  1268. - Better test coverage (37% -> 49%)
  1269. - Canonical SignBytes for signable types
  1270. - Write-Ahead Log for Mempool and Consensus via tmlibs/autofile
  1271. - Better in-process testing for the consensus reactor and byzantine faults
  1272. - Better crash/restart testing for individual nodes at preset failure points, and of networks at arbitrary points
  1273. - Better abstraction over timeout mechanics
  1274. BUG FIXES:
  1275. - Fix memory leak in mempool peer
  1276. - Fix panic on POLRound=-1
  1277. - Actually set the CommitTime
  1278. - Actually send BeginBlock message
  1279. - Fix a liveness issues caused by Byzantine proposals/votes. Uses the new `Maj23Msg`.
  1280. ## 0.7.4 (December 14, 2016)
  1281. FEATURES:
  1282. - Enable the Peer Exchange reactor with the `--pex` flag for more resilient gossip network (feature still in development, beware dragons)
  1283. IMPROVEMENTS:
  1284. - Remove restrictions on RPC endpoint `/dial_seeds` to enable manual network configuration
  1285. ## 0.7.3 (October 20, 2016)
  1286. IMPROVEMENTS:
  1287. - Type safe FireEvent
  1288. - More WAL/replay tests
  1289. - Cleanup some docs
  1290. BUG FIXES:
  1291. - Fix deadlock in mempool for synchronous apps
  1292. - Replay handles non-empty blocks
  1293. - Fix race condition in HeightVoteSet
  1294. ## 0.7.2 (September 11, 2016)
  1295. BUG FIXES:
  1296. - Set mustConnect=false so tendermint will retry connecting to the app
  1297. ## 0.7.1 (September 10, 2016)
  1298. FEATURES:
  1299. - New TMSP connection for Query/Info
  1300. - New RPC endpoints:
  1301. - `tmsp_query`
  1302. - `tmsp_info`
  1303. - Allow application to filter peers through Query (off by default)
  1304. IMPROVEMENTS:
  1305. - TMSP connection type enforced at compile time
  1306. - All listen/client urls use a "tcp://" or "unix://" prefix
  1307. BUG FIXES:
  1308. - Save LastSignature/LastSignBytes to `priv_validator.json` for recovery
  1309. - Fix event unsubscribe
  1310. - Fix fastsync/blockchain reactor
  1311. ## 0.7.0 (August 7, 2016)
  1312. BREAKING CHANGES:
  1313. - Strict SemVer starting now!
  1314. - Update to ABCI v0.2.0
  1315. - Validation types now called Commit
  1316. - NewBlock event only returns the block header
  1317. FEATURES:
  1318. - TMSP and RPC support TCP and UNIX sockets
  1319. - Addition config options including block size and consensus parameters
  1320. - New WAL mode `cswal_light`; logs only the validator's own votes
  1321. - New RPC endpoints:
  1322. - for starting/stopping profilers, and for updating config
  1323. - `/broadcast_tx_commit`, returns when tx is included in a block, else an error
  1324. - `/unsafe_flush_mempool`, empties the mempool
  1325. IMPROVEMENTS:
  1326. - Various optimizations
  1327. - Remove bad or invalidated transactions from the mempool cache (allows later duplicates)
  1328. - More elaborate testing using CircleCI including benchmarking throughput on 4 digitalocean droplets
  1329. BUG FIXES:
  1330. - Various fixes to WAL and replay logic
  1331. - Various race conditions
  1332. ## PreHistory
  1333. Strict versioning only began with the release of v0.7.0, in late summer 2016.
  1334. The project itself began in early summer 2014 and was workable decentralized cryptocurrency software by the end of that year.
  1335. Through the course of 2015, in collaboration with Eris Industries (now Monax Indsutries),
  1336. many additional features were integrated, including an implementation from scratch of the Ethereum Virtual Machine.
  1337. That implementation now forms the heart of [Burrow](https://github.com/hyperledger/burrow).
  1338. In the later half of 2015, the consensus algorithm was upgraded with a more asynchronous design and a more deterministic and robust implementation.
  1339. By late 2015, frustration with the difficulty of forking a large monolithic stack to create alternative cryptocurrency designs led to the
  1340. invention of the Application Blockchain Interface (ABCI), then called the Tendermint Socket Protocol (TMSP).
  1341. The Ethereum Virtual Machine and various other transaction features were removed, and Tendermint was whittled down to a core consensus engine
  1342. driving an application running in another process.
  1343. The ABCI interface and implementation were iterated on and improved over the course of 2016,
  1344. until versioned history kicked in with v0.7.0.