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.

254 lines
6.3 KiB

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