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.

257 lines
8.4 KiB

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