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.

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