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.

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