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.

271 lines
7.0 KiB

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