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.

258 lines
8.5 KiB

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