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.

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