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.

1603 lines
72 KiB

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