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.

317 lines
11 KiB

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