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.

235 lines
7.3 KiB

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