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.

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