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.

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