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.

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