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.

200 lines
4.5 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. # Changelog
  2. ## 0.5.0 (May 18, 2017)
  3. BREAKING CHANGES:
  4. - `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.
  5. - `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.
  6. FEATURES:
  7. - [types] new method `func (res Result) IsSameCode(compare Result) bool` checks whether two results have the same code
  8. - [types] new methods `func (r *ResponseCheckTx) Result() Result` and `func (r *ResponseDeliverTx) Result() Result` to convert from protobuf types (for control over json serialization)
  9. - [types] new method `func (r *ResponseQuery) Result() *ResultQuery` and struct `ResultQuery` to convert from protobuf types (for control over json serializtion)
  10. IMPROVEMENTS:
  11. - Update imports for new `tmlibs` repository
  12. - Use the new logger
  13. - [abci-cli] Add flags to the query command for `path`, `height`, and `prove`
  14. - [types] use `data.Bytes` and `json` tags in the `Result` struct
  15. BUG FIXES:
  16. ## 0.4.1 (April 18, 2017)
  17. IMPROVEMENTS:
  18. - Update dependencies
  19. ## 0.4.0 (March 6, 2017)
  20. BREAKING CHANGES:
  21. - Query takes RequestQuery and returns ResponseQuery. The request is split into `data` and `path`,
  22. can specify a height to query the state from, and whether or not the response should come with a proof.
  23. The response returns the corresponding key-value pair, with proof if requested.
  24. ```
  25. message RequestQuery{
  26. bytes data = 1;
  27. string path = 2;
  28. uint64 height = 3;
  29. bool prove = 4;
  30. }
  31. message ResponseQuery{
  32. CodeType code = 1;
  33. int64 index = 2;
  34. bytes key = 3;
  35. bytes value = 4;
  36. bytes proof = 5;
  37. uint64 height = 6;
  38. string log = 7;
  39. }
  40. ```
  41. IMPROVEMENTS:
  42. - Updates to Makefile
  43. - Various cleanup
  44. - BaseApplication can be embedded by new apps to avoid implementing empty methods
  45. - Drop BlockchainAware and make BeginBlock/EndBlock part of the `type Application interface`
  46. ## 0.3.0 (January 12, 2017)
  47. BREAKING CHANGES:
  48. - TMSP is now ABCI (Application/Asynchronous/A BlockChain Interface or Atomic BroadCast Interface)
  49. - AppendTx is now DeliverTx (conforms to the literature)
  50. - BeginBlock takes a Header:
  51. ```
  52. message RequestBeginBlock{
  53. bytes hash = 1;
  54. Header header = 2;
  55. }
  56. ```
  57. - Info returns a ResponseInfo, containing last block height and app hash:
  58. ```
  59. message ResponseInfo {
  60. string data = 1;
  61. string version = 2;
  62. uint64 last_block_height = 3;
  63. bytes last_block_app_hash = 4;
  64. }
  65. ```
  66. - EndBlock returns a ResponseEndBlock, containing the changed validators:
  67. ```
  68. message ResponseEndBlock{
  69. repeated Validator diffs = 4;
  70. }
  71. ```
  72. - Hex strings are 0x-prefixed in the CLI
  73. - Query on the Dummy app now uses hex-strings
  74. FEATURES:
  75. - New app, PersistentDummy, uses Info/BeginBlock to recover from failures and supports validator set changes
  76. - New message types for blockchain data:
  77. ```
  78. //----------------------------------------
  79. // Blockchain Types
  80. message Header {
  81. string chain_id = 1;
  82. uint64 height = 2;
  83. uint64 time = 3;
  84. uint64 num_txs = 4;
  85. BlockID last_block_id = 5;
  86. bytes last_commit_hash = 6;
  87. bytes data_hash = 7;
  88. bytes validators_hash = 8;
  89. bytes app_hash = 9;
  90. }
  91. message BlockID {
  92. bytes hash = 1;
  93. PartSetHeader parts = 2;
  94. }
  95. message PartSetHeader {
  96. uint64 total = 1;
  97. bytes hash = 2;
  98. }
  99. message Validator {
  100. bytes pubKey = 1;
  101. uint64 power = 2;
  102. }
  103. ```
  104. - Add support for Query to Counter app
  105. IMPROVEMENT:
  106. - Don't exit the tmsp-cli console on bad args
  107. BUG FIXES:
  108. - Fix parsing in the Counter app to handle invalid transactions
  109. ## 0.2.1 (September 12, 2016)
  110. IMPROVEMENTS
  111. - Better error handling in console
  112. ## 0.2.0 (July 23, 2016)
  113. BREAKING CHANGES:
  114. - Use `oneof` types in protobuf
  115. FEATURES:
  116. - GRPC support
  117. ## PreHistory
  118. ##### Mar 26h, 2016
  119. * Introduce BeginBlock
  120. ##### Mar 6th, 2016
  121. * Added InitChain, EndBlock
  122. ##### Feb 14th, 2016
  123. * s/GetHash/Commit/g
  124. * Document Protobuf request/response fields
  125. ##### Jan 23th, 2016
  126. * Added CheckTx/Query ABCI message types
  127. * Added Result/Log fields to DeliverTx/CheckTx/SetOption
  128. * Removed Listener messages
  129. * Removed Code from ResponseSetOption and ResponseGetHash
  130. * Made examples BigEndian
  131. ##### Jan 12th, 2016
  132. * Added "RetCodeBadNonce = 0x06" return code
  133. ##### Jan 8th, 2016
  134. * Tendermint/ABCI now comes to consensus on the order first before DeliverTx.