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.

266 lines
6.8 KiB

8 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. # Changelog
  2. ## 0.9.0 (TBD)
  3. BREAKING CHANGES:
  4. - [types] ResponseEndBlock: renamed Diffs field to ValidatorUpdates
  5. FEATURES:
  6. - [types] ResponseEndBlock: added ConsensusParamUpdates
  7. ## 0.8.0 (December 6, 2017)
  8. BREAKING CHANGES:
  9. - [client] all XxxSync methods now return (ResponseXxx, error)
  10. - [types] all methods on Application interface now take RequestXxx and return (ResponseXxx, error).
  11. - Except `CheckTx`/`DeliverTx`, which takes a `tx []byte` argument.
  12. - Except `Commit`, which takes no arguments.
  13. - [types] removed Result and ResultQuery
  14. - [types] removed CodeType - only `0 == OK` is defined here, everything else is left to convention at the application level
  15. - [types] switched to using `gogo/protobuf` for code generation
  16. - [types] use `customtype` feature of `gogo/protobuf` to replace `[]byte` with `data.Bytes` in all generated types :)
  17. - this eliminates the need for additional types like ResultQuery
  18. - [types] `pubKey` -> `pub_key`
  19. - [types] `uint64` -> `int32` for `Header.num_txs` and `PartSetHeader.total`
  20. - [types] `uint64` -> `int64` for everything else
  21. - [types] ResponseSetOption includes error code
  22. - [abci-cli] codes are printed as their number instead of a message, except for `code == 0`, which is still printed as `OK`
  23. FEATURES:
  24. - [types] ResponseDeliverTx: added `tags` field
  25. - [types] ResponseCheckTx: added `gas` and `fee` fields
  26. - [types] RequestBeginBlock: added `absent_validators` and `byzantine_validators` fields
  27. - [dummy] DeliverTx returns an owner tag and a key tag
  28. - [abci-cli] added `log_level` flag to control the logger
  29. - [abci-cli] introduce `abci-cli test` command for simple testing of ABCI server implementations via Counter application
  30. ## 0.7.1 (November 14, 2017)
  31. IMPROVEMENTS:
  32. - [cli] added version command
  33. BUG FIXES:
  34. - [server] fix "Connection error module=abci-server error=EOF"
  35. ## 0.7.0 (October 27, 2017)
  36. BREAKING CHANGES:
  37. - [cli] consolidate example apps under a single `abci-cli` binary
  38. IMPROVEMENTS:
  39. - [cli] use spf13/cobra instead of urfave/cli
  40. - [dummy] use iavl instead of merkleeyes, and add support for historical queries
  41. BUG FIXES:
  42. - [client] fix deadlock on StopForError
  43. ## 0.6.0 (September 22, 2017)
  44. BREAKING CHANGES:
  45. - [types/client] app.BeginBlock takes RequestBeginBlock
  46. - [types/client] app.InitChain takes RequestInitChain
  47. - [types/client] app.Info takes RequestInfo
  48. IMPROVEMENTS:
  49. - various linting
  50. ## 0.5.0 (May 18, 2017)
  51. BREAKING CHANGES:
  52. - `NewSocketClient` and `NewGRPCClient` no longer start the client automatically, and don't return errors. The caller is responsible for running `client.Start()` and checking the error.
  53. - `NewSocketServer` and `NewGRPCServer` no longer start the server automatically, and don't return errors. The caller is responsible for running `server.Start()` and checking the error.
  54. FEATURES:
  55. - [types] new method `func (res Result) IsSameCode(compare Result) bool` checks whether two results have the same code
  56. - [types] new methods `func (r *ResponseCheckTx) Result() Result` and `func (r *ResponseDeliverTx) Result() Result` to convert from protobuf types (for control over json serialization)
  57. - [types] new method `func (r *ResponseQuery) Result() *ResultQuery` and struct `ResultQuery` to convert from protobuf types (for control over json serializtion)
  58. IMPROVEMENTS:
  59. - Update imports for new `tmlibs` repository
  60. - Use the new logger
  61. - [abci-cli] Add flags to the query command for `path`, `height`, and `prove`
  62. - [types] use `data.Bytes` and `json` tags in the `Result` struct
  63. BUG FIXES:
  64. ## 0.4.1 (April 18, 2017)
  65. IMPROVEMENTS:
  66. - Update dependencies
  67. ## 0.4.0 (March 6, 2017)
  68. BREAKING CHANGES:
  69. - Query takes RequestQuery and returns ResponseQuery. The request is split into `data` and `path`,
  70. can specify a height to query the state from, and whether or not the response should come with a proof.
  71. The response returns the corresponding key-value pair, with proof if requested.
  72. ```
  73. message RequestQuery{
  74. bytes data = 1;
  75. string path = 2;
  76. uint64 height = 3;
  77. bool prove = 4;
  78. }
  79. message ResponseQuery{
  80. CodeType code = 1;
  81. int64 index = 2;
  82. bytes key = 3;
  83. bytes value = 4;
  84. bytes proof = 5;
  85. uint64 height = 6;
  86. string log = 7;
  87. }
  88. ```
  89. IMPROVEMENTS:
  90. - Updates to Makefile
  91. - Various cleanup
  92. - BaseApplication can be embedded by new apps to avoid implementing empty methods
  93. - Drop BlockchainAware and make BeginBlock/EndBlock part of the `type Application interface`
  94. ## 0.3.0 (January 12, 2017)
  95. BREAKING CHANGES:
  96. - TMSP is now ABCI (Application/Asynchronous/A BlockChain Interface or Atomic BroadCast Interface)
  97. - AppendTx is now DeliverTx (conforms to the literature)
  98. - BeginBlock takes a Header:
  99. ```
  100. message RequestBeginBlock{
  101. bytes hash = 1;
  102. Header header = 2;
  103. }
  104. ```
  105. - Info returns a ResponseInfo, containing last block height and app hash:
  106. ```
  107. message ResponseInfo {
  108. string data = 1;
  109. string version = 2;
  110. uint64 last_block_height = 3;
  111. bytes last_block_app_hash = 4;
  112. }
  113. ```
  114. - EndBlock returns a ResponseEndBlock, containing the changed validators:
  115. ```
  116. message ResponseEndBlock{
  117. repeated Validator diffs = 4;
  118. }
  119. ```
  120. - Hex strings are 0x-prefixed in the CLI
  121. - Query on the Dummy app now uses hex-strings
  122. FEATURES:
  123. - New app, PersistentDummy, uses Info/BeginBlock to recover from failures and supports validator set changes
  124. - New message types for blockchain data:
  125. ```
  126. //----------------------------------------
  127. // Blockchain Types
  128. message Header {
  129. string chain_id = 1;
  130. uint64 height = 2;
  131. uint64 time = 3;
  132. uint64 num_txs = 4;
  133. BlockID last_block_id = 5;
  134. bytes last_commit_hash = 6;
  135. bytes data_hash = 7;
  136. bytes validators_hash = 8;
  137. bytes app_hash = 9;
  138. }
  139. message BlockID {
  140. bytes hash = 1;
  141. PartSetHeader parts = 2;
  142. }
  143. message PartSetHeader {
  144. uint64 total = 1;
  145. bytes hash = 2;
  146. }
  147. message Validator {
  148. bytes pubKey = 1;
  149. uint64 power = 2;
  150. }
  151. ```
  152. - Add support for Query to Counter app
  153. IMPROVEMENT:
  154. - Don't exit the tmsp-cli console on bad args
  155. BUG FIXES:
  156. - Fix parsing in the Counter app to handle invalid transactions
  157. ## 0.2.1 (September 12, 2016)
  158. IMPROVEMENTS
  159. - Better error handling in console
  160. ## 0.2.0 (July 23, 2016)
  161. BREAKING CHANGES:
  162. - Use `oneof` types in protobuf
  163. FEATURES:
  164. - GRPC support
  165. ## PreHistory
  166. ##### Mar 26h, 2016
  167. * Introduce BeginBlock
  168. ##### Mar 6th, 2016
  169. * Added InitChain, EndBlock
  170. ##### Feb 14th, 2016
  171. * s/GetHash/Commit/g
  172. * Document Protobuf request/response fields
  173. ##### Jan 23th, 2016
  174. * Added CheckTx/Query ABCI message types
  175. * Added Result/Log fields to DeliverTx/CheckTx/SetOption
  176. * Removed Listener messages
  177. * Removed Code from ResponseSetOption and ResponseGetHash
  178. * Made examples BigEndian
  179. ##### Jan 12th, 2016
  180. * Added "RetCodeBadNonce = 0x06" return code
  181. ##### Jan 8th, 2016
  182. * Tendermint/ABCI now comes to consensus on the order first before DeliverTx.