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.

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