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.

264 lines
8.7 KiB

8 years ago
8 years ago
8 years ago
8 years ago
  1. # Changelog
  2. ## 0.9.2 (April 26, 2017)
  3. BUG FIXES:
  4. - Fix bug in `ResetPrivValidator` where we were using the global config and log (causing external consumers, eg. basecoin, to fail).
  5. ## 0.9.1 (April 21, 2017)
  6. FEATURES:
  7. - Transaction indexing - txs are indexed by their hash using a simple key-value store; easily extended to more advanced indexers
  8. - 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
  9. - `tendermint testnet` command initializes files for a testnet
  10. IMPROVEMENTS:
  11. - CLI now uses Cobra framework
  12. - TMROOT is now TMHOME (TMROOT will stop working in 0.10.0)
  13. - `/broadcast_tx_XXX` also returns the Hash (can be used to query for the tx)
  14. - `/broadcast_tx_commit` also returns the height the block was committed in
  15. - ABCIResponses struct persisted to disk before calling Commit; makes handshake replay much cleaner
  16. - WAL uses #ENDHEIGHT instead of #HEIGHT (#HEIGHT will stop working in 0.10.0)
  17. - 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
  18. BUG FIXES:
  19. - Fix bug in fast-sync where we stop syncing after a peer is removed, even if they're re-added later
  20. - Fix handshake replay to handle validator set changes and results of DeliverTx when we crash after app.Commit but before state.Save()
  21. ## 0.9.0 (March 6, 2017)
  22. BREAKING CHANGES:
  23. - Update ABCI to v0.4.0, where Query is now `Query(RequestQuery) ResponseQuery`, enabling precise proofs at particular heights:
  24. ```
  25. message RequestQuery{
  26. bytes data = 1;
  27. string path = 2;
  28. uint64 height = 3;
  29. bool prove = 4;
  30. }
  31. message ResponseQuery{
  32. CodeType code = 1;
  33. int64 index = 2;
  34. bytes key = 3;
  35. bytes value = 4;
  36. bytes proof = 5;
  37. uint64 height = 6;
  38. string log = 7;
  39. }
  40. ```
  41. - `BlockMeta` data type unifies its Hash and PartSetHash under a `BlockID`:
  42. ```
  43. type BlockMeta struct {
  44. BlockID BlockID `json:"block_id"` // the block hash and partsethash
  45. Header *Header `json:"header"` // The block's Header
  46. }
  47. ```
  48. - `ValidatorSet.Proposer` is exposed as a field and persisted with the `State`. Use `GetProposer()` to initialize or update after validator-set changes.
  49. - `tendermint gen_validator` command output is now pure JSON
  50. FEATURES:
  51. - New RPC endpoint `/commit?height=X` returns header and commit for block at height `X`
  52. - Client API for each endpoint, including mocks for testing
  53. IMPROVEMENTS:
  54. - `Node` is now a `BaseService`
  55. - Simplified starting Tendermint in-process from another application
  56. - Better organized Makefile
  57. - Scripts for auto-building binaries across platforms
  58. - Docker image improved, slimmed down (using Alpine), and changed from tendermint/tmbase to tendermint/tendermint
  59. - New repo files: `CONTRIBUTING.md`, Github `ISSUE_TEMPLATE`, `CHANGELOG.md`
  60. - Improvements on CircleCI for managing build/test artifacts
  61. - Handshake replay is doen through the consensus package, possibly using a mockApp
  62. - Graceful shutdown of RPC listeners
  63. - Tests for the PEX reactor and DialSeeds
  64. BUG FIXES:
  65. - Check peer.Send for failure before updating PeerState in consensus
  66. - Fix panic in `/dial_seeds` with invalid addresses
  67. - Fix proposer selection logic in ValidatorSet by taking the address into account in the `accumComparable`
  68. - Fix inconcistencies with `ValidatorSet.Proposer` across restarts by persisting it in the `State`
  69. ## 0.8.0 (January 13, 2017)
  70. BREAKING CHANGES:
  71. - New data type `BlockID` to represent blocks:
  72. ```
  73. type BlockID struct {
  74. Hash []byte `json:"hash"`
  75. PartsHeader PartSetHeader `json:"parts"`
  76. }
  77. ```
  78. - `Vote` data type now includes validator address and index:
  79. ```
  80. type Vote struct {
  81. ValidatorAddress []byte `json:"validator_address"`
  82. ValidatorIndex int `json:"validator_index"`
  83. Height int `json:"height"`
  84. Round int `json:"round"`
  85. Type byte `json:"type"`
  86. BlockID BlockID `json:"block_id"` // zero if vote is nil.
  87. Signature crypto.Signature `json:"signature"`
  88. }
  89. ```
  90. - Update TMSP to v0.3.0, where it is now called ABCI and AppendTx is DeliverTx
  91. - Hex strings in the RPC are now "0x" prefixed
  92. FEATURES:
  93. - New message type on the ConsensusReactor, `Maj23Msg`, for peers to alert others they've seen a Maj23,
  94. in order to track and handle conflicting votes intelligently to prevent Byzantine faults from causing halts:
  95. ```
  96. type VoteSetMaj23Message struct {
  97. Height int
  98. Round int
  99. Type byte
  100. BlockID types.BlockID
  101. }
  102. ```
  103. - Configurable block part set size
  104. - Validator set changes
  105. - Optionally skip TimeoutCommit if we have all the votes
  106. - Handshake between Tendermint and App on startup to sync latest state and ensure consistent recovery from crashes
  107. - GRPC server for BroadcastTx endpoint
  108. IMPROVEMENTS:
  109. - Less verbose logging
  110. - Better test coverage (37% -> 49%)
  111. - Canonical SignBytes for signable types
  112. - Write-Ahead Log for Mempool and Consensus via go-autofile
  113. - Better in-process testing for the consensus reactor and byzantine faults
  114. - Better crash/restart testing for individual nodes at preset failure points, and of networks at arbitrary points
  115. - Better abstraction over timeout mechanics
  116. BUG FIXES:
  117. - Fix memory leak in mempool peer
  118. - Fix panic on POLRound=-1
  119. - Actually set the CommitTime
  120. - Actually send BeginBlock message
  121. - Fix a liveness issues caused by Byzantine proposals/votes. Uses the new `Maj23Msg`.
  122. ## 0.7.4 (December 14, 2016)
  123. FEATURES:
  124. - Enable the Peer Exchange reactor with the `--pex` flag for more resilient gossip network (feature still in development, beware dragons)
  125. IMPROVEMENTS:
  126. - Remove restrictions on RPC endpoint `/dial_seeds` to enable manual network configuration
  127. ## 0.7.3 (October 20, 2016)
  128. IMPROVEMENTS:
  129. - Type safe FireEvent
  130. - More WAL/replay tests
  131. - Cleanup some docs
  132. BUG FIXES:
  133. - Fix deadlock in mempool for synchronous apps
  134. - Replay handles non-empty blocks
  135. - Fix race condition in HeightVoteSet
  136. ## 0.7.2 (September 11, 2016)
  137. BUG FIXES:
  138. - Set mustConnect=false so tendermint will retry connecting to the app
  139. ## 0.7.1 (September 10, 2016)
  140. FEATURES:
  141. - New TMSP connection for Query/Info
  142. - New RPC endpoints:
  143. - `tmsp_query`
  144. - `tmsp_info`
  145. - Allow application to filter peers through Query (off by default)
  146. IMPROVEMENTS:
  147. - TMSP connection type enforced at compile time
  148. - All listen/client urls use a "tcp://" or "unix://" prefix
  149. BUG FIXES:
  150. - Save LastSignature/LastSignBytes to `priv_validator.json` for recovery
  151. - Fix event unsubscribe
  152. - Fix fastsync/blockchain reactor
  153. ## 0.7.0 (August 7, 2016)
  154. BREAKING CHANGES:
  155. - Strict SemVer starting now!
  156. - Update to ABCI v0.2.0
  157. - Validation types now called Commit
  158. - NewBlock event only returns the block header
  159. FEATURES:
  160. - TMSP and RPC support TCP and UNIX sockets
  161. - Addition config options including block size and consensus parameters
  162. - New WAL mode `cswal_light`; logs only the validator's own votes
  163. - New RPC endpoints:
  164. - for starting/stopping profilers, and for updating config
  165. - `/broadcast_tx_commit`, returns when tx is included in a block, else an error
  166. - `/unsafe_flush_mempool`, empties the mempool
  167. IMPROVEMENTS:
  168. - Various optimizations
  169. - Remove bad or invalidated transactions from the mempool cache (allows later duplicates)
  170. - More elaborate testing using CircleCI including benchmarking throughput on 4 digitalocean droplets
  171. BUG FIXES:
  172. - Various fixes to WAL and replay logic
  173. - Various race conditions
  174. ## PreHistory
  175. Strict versioning only began with the release of v0.7.0, in late summer 2016.
  176. The project itself began in early summer 2014 and was workable decentralized cryptocurrency software by the end of that year.
  177. Through the course of 2015, in collaboration with Eris Industries (now Monax Indsutries),
  178. many additional features were integrated, including an implementation from scratch of the Ethereum Virtual Machine.
  179. That implementation now forms the heart of [ErisDB](https://github.com/eris-ltd/eris-db).
  180. In the later half of 2015, the consensus algorithm was upgraded with a more asynchronous design and a more deterministic and robust implementation.
  181. By late 2015, frustration with the difficulty of forking a large monolithic stack to create alternative cryptocurrency designs led to the
  182. invention of the Application Blockchain Interface (ABCI), then called the Tendermint Socket Protocol (TMSP).
  183. The Ethereum Virtual Machine and various other transaction features were removed, and Tendermint was whittled down to a core consensus engine
  184. driving an application running in another process.
  185. The ABCI interface and implementation were iterated on and improved over the course of 2016,
  186. until versioned history kicked in with v0.7.0.