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.

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