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.

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