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.

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