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.

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