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.

999 lines
36 KiB

7 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
p2p: introduce peerConn to simplify peer creation (#1226) * expose AuthEnc in the P2P config if AuthEnc is true, dialed peers must have a node ID in the address and it must match the persistent pubkey from the secret handshake. Refs #1157 * fixes after my own review * fix docs * fix build failure ``` p2p/pex/pex_reactor_test.go:288:88: cannot use seed.NodeInfo().NetAddress() (type *p2p.NetAddress) as type string in array or slice literal ``` * p2p: introduce peerConn to simplify peer creation * Introduce `peerConn` containing the known fields of `peer` * `peer` only created in `sw.addPeer` once handshake is complete and NodeInfo is checked * Eliminates some mutable variables and makes the code flow better * Simplifies the `newXxxPeer` funcs * Use ID instead of PubKey where possible. * SetPubKeyFilter -> SetIDFilter * nodeInfo.Validate takes ID * remove peer.PubKey() * persistent node ids * fixes from review * test: use ip_plus_id.sh more * fix invalid memory panic during fast_sync test ``` 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: panic: runtime error: invalid memory address or nil pointer dereference 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x98dd3e] 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: goroutine 3432 [running]: 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: github.com/tendermint/tendermint/p2p.newOutboundPeerConn(0xc423fd1380, 0xc420933e00, 0x1, 0x1239a60, 0 xc420128c40, 0x2, 0x42caf6, 0xc42001f300, 0xc422831d98, 0xc4227951c0, ...) 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/peer.go:123 +0x31e 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: github.com/tendermint/tendermint/p2p.(*Switch).addOutboundPeerWithConfig(0xc4200ad040, 0xc423fd1380, 0 xc420933e00, 0xc423f48801, 0x28, 0x2) 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/switch.go:455 +0x12b 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: github.com/tendermint/tendermint/p2p.(*Switch).DialPeerWithAddress(0xc4200ad040, 0xc423fd1380, 0x1, 0x 0, 0x0) 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/switch.go:371 +0xdc 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: github.com/tendermint/tendermint/p2p.(*Switch).reconnectToPeer(0xc4200ad040, 0x123e000, 0xc42007bb00) 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/switch.go:290 +0x25f 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: created by github.com/tendermint/tendermint/p2p.(*Switch).StopPeerForError 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/switch.go:256 +0x1b7 ```
6 years ago
p2p: introduce peerConn to simplify peer creation (#1226) * expose AuthEnc in the P2P config if AuthEnc is true, dialed peers must have a node ID in the address and it must match the persistent pubkey from the secret handshake. Refs #1157 * fixes after my own review * fix docs * fix build failure ``` p2p/pex/pex_reactor_test.go:288:88: cannot use seed.NodeInfo().NetAddress() (type *p2p.NetAddress) as type string in array or slice literal ``` * p2p: introduce peerConn to simplify peer creation * Introduce `peerConn` containing the known fields of `peer` * `peer` only created in `sw.addPeer` once handshake is complete and NodeInfo is checked * Eliminates some mutable variables and makes the code flow better * Simplifies the `newXxxPeer` funcs * Use ID instead of PubKey where possible. * SetPubKeyFilter -> SetIDFilter * nodeInfo.Validate takes ID * remove peer.PubKey() * persistent node ids * fixes from review * test: use ip_plus_id.sh more * fix invalid memory panic during fast_sync test ``` 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: panic: runtime error: invalid memory address or nil pointer dereference 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x98dd3e] 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: goroutine 3432 [running]: 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: github.com/tendermint/tendermint/p2p.newOutboundPeerConn(0xc423fd1380, 0xc420933e00, 0x1, 0x1239a60, 0 xc420128c40, 0x2, 0x42caf6, 0xc42001f300, 0xc422831d98, 0xc4227951c0, ...) 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/peer.go:123 +0x31e 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: github.com/tendermint/tendermint/p2p.(*Switch).addOutboundPeerWithConfig(0xc4200ad040, 0xc423fd1380, 0 xc420933e00, 0xc423f48801, 0x28, 0x2) 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/switch.go:455 +0x12b 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: github.com/tendermint/tendermint/p2p.(*Switch).DialPeerWithAddress(0xc4200ad040, 0xc423fd1380, 0x1, 0x 0, 0x0) 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/switch.go:371 +0xdc 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: github.com/tendermint/tendermint/p2p.(*Switch).reconnectToPeer(0xc4200ad040, 0x123e000, 0xc42007bb00) 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/switch.go:290 +0x25f 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: created by github.com/tendermint/tendermint/p2p.(*Switch).StopPeerForError 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/switch.go:256 +0x1b7 ```
6 years ago
p2p: introduce peerConn to simplify peer creation (#1226) * expose AuthEnc in the P2P config if AuthEnc is true, dialed peers must have a node ID in the address and it must match the persistent pubkey from the secret handshake. Refs #1157 * fixes after my own review * fix docs * fix build failure ``` p2p/pex/pex_reactor_test.go:288:88: cannot use seed.NodeInfo().NetAddress() (type *p2p.NetAddress) as type string in array or slice literal ``` * p2p: introduce peerConn to simplify peer creation * Introduce `peerConn` containing the known fields of `peer` * `peer` only created in `sw.addPeer` once handshake is complete and NodeInfo is checked * Eliminates some mutable variables and makes the code flow better * Simplifies the `newXxxPeer` funcs * Use ID instead of PubKey where possible. * SetPubKeyFilter -> SetIDFilter * nodeInfo.Validate takes ID * remove peer.PubKey() * persistent node ids * fixes from review * test: use ip_plus_id.sh more * fix invalid memory panic during fast_sync test ``` 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: panic: runtime error: invalid memory address or nil pointer dereference 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x98dd3e] 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: goroutine 3432 [running]: 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: github.com/tendermint/tendermint/p2p.newOutboundPeerConn(0xc423fd1380, 0xc420933e00, 0x1, 0x1239a60, 0 xc420128c40, 0x2, 0x42caf6, 0xc42001f300, 0xc422831d98, 0xc4227951c0, ...) 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/peer.go:123 +0x31e 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: github.com/tendermint/tendermint/p2p.(*Switch).addOutboundPeerWithConfig(0xc4200ad040, 0xc423fd1380, 0 xc420933e00, 0xc423f48801, 0x28, 0x2) 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/switch.go:455 +0x12b 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: github.com/tendermint/tendermint/p2p.(*Switch).DialPeerWithAddress(0xc4200ad040, 0xc423fd1380, 0x1, 0x 0, 0x0) 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/switch.go:371 +0xdc 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: github.com/tendermint/tendermint/p2p.(*Switch).reconnectToPeer(0xc4200ad040, 0x123e000, 0xc42007bb00) 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/switch.go:290 +0x25f 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: created by github.com/tendermint/tendermint/p2p.(*Switch).StopPeerForError 2018-02-21T06:30:05Z box887.localdomain docker/local_testnet_4[14907]: #011/go/src/github.com/tendermint/tendermint/p2p/switch.go:256 +0x1b7 ```
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. # Changelog
  2. ## TBA
  3. BREAKING CHANGES:
  4. - [libs/common] remove exponentially distributed random numbers
  5. IMPROVEMENTS:
  6. - [config] Increase default send/recv rates to 5 mB/s
  7. - [abci] Generated gogoproto static marshaller methods
  8. = [libs/common] Generated gogoproto static marshaller methods
  9. ## 0.22.4
  10. *July 14th, 2018*
  11. BREAKING CHANGES:
  12. - [genesis] removed deprecated `app_options` field.
  13. - [types] Genesis.AppStateJSON -> Genesis.AppState
  14. FEATURES:
  15. - [tools] Merged in from github.com/tendermint/tools
  16. BUG FIXES:
  17. - [tools/tm-bench] Various fixes
  18. - [consensus] Wait for WAL to stop on shutdown
  19. - [abci] Fix #1891, pending requests cannot hang when abci server dies. Previously a crash in BeginBlock could leave tendermint in broken state.
  20. ## 0.22.3
  21. *July 10th, 2018*
  22. IMPROVEMENTS
  23. - Update dependencies
  24. * pin all values in Gopkg.toml to version or commit
  25. * update golang/protobuf to v1.1.0
  26. ## 0.22.2
  27. *July 10th, 2018*
  28. IMPROVEMENTS
  29. - More cleanup post repo merge!
  30. - [docs] Include `ecosystem.json` and `tendermint-bft.md` from deprecated `aib-data` repository.
  31. - [config] Add `instrumentation.max_open_connections`, which limits the number
  32. of requests in flight to Prometheus server (if enabled). Default: 3.
  33. BUG FIXES
  34. - [rpc] Allow unquoted integers in requests
  35. - NOTE: this is only for URI requests. JSONRPC requests and all responses
  36. will use quoted integers (the proto3 JSON standard).
  37. - [consensus] Fix halt on shutdown
  38. ## 0.22.1
  39. *July 5th, 2018*
  40. IMPROVEMENTS
  41. * Cleanup post repo-merge.
  42. * [docs] Various improvements.
  43. BUG FIXES
  44. * [state] Return error when EndBlock returns a 0-power validator that isn't
  45. already in the validator set.
  46. * [consensus] Shut down WAL properly.
  47. ## 0.22.0
  48. *July 2nd, 2018*
  49. BREAKING CHANGES:
  50. - [config]
  51. * Remove `max_block_size_txs` and `max_block_size_bytes` in favor of
  52. consensus params from the genesis file.
  53. * Rename `skip_upnp` to `upnp`, and turn it off by default.
  54. * Change `max_packet_msg_size` back to `max_packet_msg_payload_size`
  55. - [rpc]
  56. * All integers are encoded as strings (part of the update for Amino v0.10.1)
  57. * `syncing` is now called `catching_up`
  58. - [types] Update Amino to v0.10.1
  59. * Amino is now fully proto3 compatible for the basic types
  60. * JSON-encoded types now use the type name instead of the prefix bytes
  61. * Integers are encoded as strings
  62. - [crypto] Update go-crypto to v0.10.0 and merge into `crypto`
  63. * privKey.Sign returns error.
  64. * ed25519 address changed to the first 20-bytes of the SHA256 of the raw pubkey bytes
  65. * `tmlibs/merkle` -> `crypto/merkle`. Uses SHA256 instead of RIPEMD160
  66. - [tmlibs] Update to v0.9.0 and merge into `libs`
  67. * remove `merkle` package (moved to `crypto/merkle`)
  68. FEATURES
  69. - [cmd] Added metrics (served under `/metrics` using a Prometheus client;
  70. disabled by default). See the new `instrumentation` section in the config and
  71. [metrics](https://tendermint.readthedocs.io/projects/tools/en/develop/metrics.html)
  72. guide.
  73. - [p2p] Add IPv6 support to peering.
  74. - [p2p] Add `external_address` to config to allow specifying the address for
  75. peers to dial
  76. IMPROVEMENT
  77. - [rpc/client] Supports https and wss now.
  78. - [crypto] Make public key size into public constants
  79. - [mempool] Log tx hash, not entire tx
  80. - [abci] Merged in github.com/tendermint/abci
  81. - [crypto] Merged in github.com/tendermint/go-crypto
  82. - [libs] Merged in github.com/tendermint/tmlibs
  83. - [docs] Move from .rst to .md
  84. BUG FIXES:
  85. - [rpc] Limit maximum number of HTTP/WebSocket connections
  86. (`rpc.max_open_connections`) and gRPC connections
  87. (`rpc.grpc_max_open_connections`). Check out "Running In Production" guide if
  88. you want to increase them.
  89. - [rpc] Limit maximum request body size to 1MB (header is limited to 1MB).
  90. - [consensus] Fix a halting bug where `create_empty_blocks=false`
  91. - [p2p] Fix panic in seed mode
  92. ## 0.21.0
  93. *June 21th, 2018*
  94. BREAKING CHANGES
  95. - [config] Change default ports from 4665X to 2665X. Ports over 32768 are
  96. ephemeral and reserved for use by the kernel.
  97. - [cmd] `unsafe_reset_all` removes the addrbook.json
  98. IMPROVEMENT
  99. - [pubsub] Set default capacity to 0
  100. - [docs] Various improvements
  101. BUG FIXES
  102. - [consensus] Fix an issue where we don't make blocks after `fast_sync` when `create_empty_blocks=false`
  103. - [mempool] Fix #1761 where we don't process txs if `cache_size=0`
  104. - [rpc] Fix memory leak in Websocket (when using `/subscribe` method)
  105. - [config] Escape paths in config - fixes config paths on Windows
  106. ## 0.20.0
  107. *June 6th, 2018*
  108. This is the first in a series of breaking releases coming to Tendermint after
  109. soliciting developer feedback and conducting security audits.
  110. This release does not break any blockchain data structures or
  111. protocols other than the ABCI messages between Tendermint and the application.
  112. Applications that upgrade for ABCI v0.11.0 should be able to continue running Tendermint
  113. v0.20.0 on blockchains created with v0.19.X
  114. BREAKING CHANGES
  115. - [abci] Upgrade to
  116. [v0.11.0](https://github.com/tendermint/abci/blob/master/CHANGELOG.md#0110)
  117. - [abci] Change Query path for filtering peers by node ID from
  118. `p2p/filter/pubkey/<id>` to `p2p/filter/id/<id>`
  119. ## 0.19.9
  120. *June 5th, 2018*
  121. BREAKING CHANGES
  122. - [types/priv_validator] Moved to top level `privval` package
  123. FEATURES
  124. - [config] Collapse PeerConfig into P2PConfig
  125. - [docs] Add quick-install script
  126. - [docs/spec] Add table of Amino prefixes
  127. BUG FIXES
  128. - [rpc] Return 404 for unknown endpoints
  129. - [consensus] Flush WAL on stop
  130. - [evidence] Don't send evidence to peers that are behind
  131. - [p2p] Fix memory leak on peer disconnects
  132. - [rpc] Fix panic when `per_page=0`
  133. ## 0.19.8
  134. *June 4th, 2018*
  135. BREAKING:
  136. - [p2p] Remove `auth_enc` config option, peer connections are always auth
  137. encrypted. Technically a breaking change but seems no one was using it and
  138. arguably a bug fix :)
  139. BUG FIXES
  140. - [mempool] Fix deadlock under high load when `skip_timeout_commit=true` and
  141. `create_empty_blocks=false`
  142. ## 0.19.7
  143. *May 31st, 2018*
  144. BREAKING:
  145. - [libs/pubsub] TagMap#Get returns a string value
  146. - [libs/pubsub] NewTagMap accepts a map of strings
  147. FEATURES
  148. - [rpc] the RPC documentation is now published to https://tendermint.github.io/slate
  149. - [p2p] AllowDuplicateIP config option to refuse connections from same IP.
  150. - true by default for now, false by default in next breaking release
  151. - [docs] Add docs for query, tx indexing, events, pubsub
  152. - [docs] Add some notes about running Tendermint in production
  153. IMPROVEMENTS:
  154. - [consensus] Consensus reactor now receives events from a separate synchronous event bus,
  155. which is not dependant on external RPC load
  156. - [consensus/wal] do not look for height in older files if we've seen height - 1
  157. - [docs] Various cleanup and link fixes
  158. ## 0.19.6
  159. *May 29th, 2018*
  160. BUG FIXES
  161. - [blockchain] Fix fast-sync deadlock during high peer turnover
  162. BUG FIX:
  163. - [evidence] Dont send peers evidence from heights they haven't synced to yet
  164. - [p2p] Refuse connections to more than one peer with the same IP
  165. - [docs] Various fixes
  166. ## 0.19.5
  167. *May 20th, 2018*
  168. BREAKING CHANGES
  169. - [rpc/client] TxSearch and UnconfirmedTxs have new arguments (see below)
  170. - [rpc/client] TxSearch returns ResultTxSearch
  171. - [version] Breaking changes to Go APIs will not be reflected in breaking
  172. version change, but will be included in changelog.
  173. FEATURES
  174. - [rpc] `/tx_search` takes `page` (starts at 1) and `per_page` (max 100, default 30) args to paginate results
  175. - [rpc] `/unconfirmed_txs` takes `limit` (max 100, default 30) arg to limit the output
  176. - [config] `mempool.size` and `mempool.cache_size` options
  177. IMPROVEMENTS
  178. - [docs] Lots of updates
  179. - [consensus] Only Fsync() the WAL before executing msgs from ourselves
  180. BUG FIXES
  181. - [mempool] Enforce upper bound on number of transactions
  182. ## 0.19.4 (May 17th, 2018)
  183. IMPROVEMENTS
  184. - [state] Improve tx indexing by using batches
  185. - [consensus, state] Improve logging (more consensus logs, fewer tx logs)
  186. - [spec] Moved to `docs/spec` (TODO cleanup the rest of the docs ...)
  187. BUG FIXES
  188. - [consensus] Fix issue #1575 where a late proposer can get stuck
  189. ## 0.19.3 (May 14th, 2018)
  190. FEATURES
  191. - [rpc] New `/consensus_state` returns just the votes seen at the current height
  192. IMPROVEMENTS
  193. - [rpc] Add stringified votes and fraction of power voted to `/dump_consensus_state`
  194. - [rpc] Add PeerStateStats to `/dump_consensus_state`
  195. BUG FIXES
  196. - [cmd] Set GenesisTime during `tendermint init`
  197. - [consensus] fix ValidBlock rules
  198. ## 0.19.2 (April 30th, 2018)
  199. FEATURES:
  200. - [p2p] Allow peers with different Minor versions to connect
  201. - [rpc] `/net_info` includes `n_peers`
  202. IMPROVEMENTS:
  203. - [p2p] Various code comments, cleanup, error types
  204. - [p2p] Change some Error logs to Debug
  205. BUG FIXES:
  206. - [p2p] Fix reconnect to persistent peer when first dial fails
  207. - [p2p] Validate NodeInfo.ListenAddr
  208. - [p2p] Only allow (MaxNumPeers - MaxNumOutboundPeers) inbound peers
  209. - [p2p/pex] Limit max msg size to 64kB
  210. - [p2p] Fix panic when pex=false
  211. - [p2p] Allow multiple IPs per ID in AddrBook
  212. - [p2p] Fix before/after bugs in addrbook isBad()
  213. ## 0.19.1 (April 27th, 2018)
  214. Note this release includes some small breaking changes in the RPC and one in the
  215. config that are really bug fixes. v0.19.1 will work with existing chains, and make Tendermint
  216. easier to use and debug. With <3
  217. BREAKING (MINOR)
  218. - [config] Removed `wal_light` setting. If you really needed this, let us know
  219. FEATURES:
  220. - [networks] moved in tooling from devops repo: terraform and ansible scripts for deploying testnets !
  221. - [cmd] Added `gen_node_key` command
  222. BUG FIXES
  223. Some of these are breaking in the RPC response, but they're really bugs!
  224. - [spec] Document address format and pubkey encoding pre and post Amino
  225. - [rpc] Lower case JSON field names
  226. - [rpc] Fix missing entries, improve, and lower case the fields in `/dump_consensus_state`
  227. - [rpc] Fix NodeInfo.Channels format to hex
  228. - [rpc] Add Validator address to `/status`
  229. - [rpc] Fix `prove` in ABCIQuery
  230. - [cmd] MarshalJSONIndent on init
  231. ## 0.19.0 (April 13th, 2018)
  232. BREAKING:
  233. - [cmd] improved `testnet` command; now it can fill in `persistent_peers` for you in the config file and much more (see `tendermint testnet --help` for details)
  234. - [cmd] `show_node_id` now returns an error if there is no node key
  235. - [rpc]: changed the output format for the `/status` endpoint (see https://godoc.org/github.com/tendermint/tendermint/rpc/core#Status)
  236. Upgrade from go-wire to go-amino. This is a sweeping change that breaks everything that is
  237. serialized to disk or over the network.
  238. See github.com/tendermint/go-amino for details on the new format.
  239. See `scripts/wire2amino.go` for a tool to upgrade
  240. genesis/priv_validator/node_key JSON files.
  241. FEATURES
  242. - [test] docker-compose for local testnet setup (thanks Greg!)
  243. ## 0.18.0 (April 6th, 2018)
  244. BREAKING:
  245. - [types] Merkle tree uses different encoding for varints (see tmlibs v0.8.0)
  246. - [types] ValidtorSet.GetByAddress returns -1 if no validator found
  247. - [p2p] require all addresses come with an ID no matter what
  248. - [rpc] Listening address must contain tcp:// or unix:// prefix
  249. FEATURES:
  250. - [rpc] StartHTTPAndTLSServer (not used yet)
  251. - [rpc] Include validator's voting power in `/status`
  252. - [rpc] `/tx` and `/tx_search` responses now include the transaction hash
  253. - [rpc] Include peer NodeIDs in `/net_info`
  254. IMPROVEMENTS:
  255. - [config] trim whitespace from elements of lists (like `persistent_peers`)
  256. - [rpc] `/tx_search` results are sorted by height
  257. - [p2p] do not try to connect to ourselves (ok, maybe only once)
  258. - [p2p] seeds respond with a bias towards good peers
  259. BUG FIXES:
  260. - [rpc] fix subscribing using an abci.ResponseDeliverTx tag
  261. - [rpc] fix tx_indexers matchRange
  262. - [rpc] fix unsubscribing (see tmlibs v0.8.0)
  263. ## 0.17.1 (March 27th, 2018)
  264. BUG FIXES:
  265. - [types] Actually support `app_state` in genesis as `AppStateJSON`
  266. ## 0.17.0 (March 27th, 2018)
  267. BREAKING:
  268. - [types] WriteSignBytes -> SignBytes
  269. IMPROVEMENTS:
  270. - [all] renamed `dummy` (`persistent_dummy`) to `kvstore` (`persistent_kvstore`) (name "dummy" is deprecated and will not work in the next breaking release)
  271. - [docs] note on determinism (docs/determinism.rst)
  272. - [genesis] `app_options` field is deprecated. please rename it to `app_state` in your genesis file(s). `app_options` will not work in the next breaking release
  273. - [p2p] dial seeds directly without potential peers
  274. - [p2p] exponential backoff for addrs in the address book
  275. - [p2p] mark peer as good if it contributed enough votes or block parts
  276. - [p2p] stop peer if it sends incorrect data, msg to unknown channel, msg we did not expect
  277. - [p2p] when `auth_enc` is true, all dialed peers must have a node ID in their address
  278. - [spec] various improvements
  279. - switched from glide to dep internally for package management
  280. - [wire] prep work for upgrading to new go-wire (which is now called go-amino)
  281. FEATURES:
  282. - [config] exposed `auth_enc` flag to enable/disable encryption
  283. - [config] added the `--p2p.private_peer_ids` flag and `PrivatePeerIDs` config variable (see config for description)
  284. - [rpc] added `/health` endpoint, which returns empty result for now
  285. - [types/priv_validator] new format and socket client, allowing for remote signing
  286. BUG FIXES:
  287. - [consensus] fix liveness bug by introducing ValidBlock mechanism
  288. ## 0.16.0 (February 20th, 2018)
  289. BREAKING CHANGES:
  290. - [config] use $TMHOME/config for all config and json files
  291. - [p2p] old `--p2p.seeds` is now `--p2p.persistent_peers` (persistent peers to which TM will always connect to)
  292. - [p2p] now `--p2p.seeds` only used for getting addresses (if addrbook is empty; not persistent)
  293. - [p2p] NodeInfo: remove RemoteAddr and add Channels
  294. - we must have at least one overlapping channel with peer
  295. - we only send msgs for channels the peer advertised
  296. - [p2p/conn] pong timeout
  297. - [lite] comment out IAVL related code
  298. FEATURES:
  299. - [p2p] added new `/dial_peers&persistent=_` **unsafe** endpoint
  300. - [p2p] persistent node key in `$THMHOME/config/node_key.json`
  301. - [p2p] introduce peer ID and authenticate peers by ID using addresses like `ID@IP:PORT`
  302. - [p2p/pex] new seed mode crawls the network and serves as a seed.
  303. - [config] MempoolConfig.CacheSize
  304. - [config] P2P.SeedMode (`--p2p.seed_mode`)
  305. IMPROVEMENT:
  306. - [p2p/pex] stricter rules in the PEX reactor for better handling of abuse
  307. - [p2p] various improvements to code structure including subpackages for `pex` and `conn`
  308. - [docs] new spec!
  309. - [all] speed up the tests!
  310. BUG FIX:
  311. - [blockchain] StopPeerForError on timeout
  312. - [consensus] StopPeerForError on a bad Maj23 message
  313. - [state] flush mempool conn before calling commit
  314. - [types] fix priv val signing things that only differ by timestamp
  315. - [mempool] fix memory leak causing zombie peers
  316. - [p2p/conn] fix potential deadlock
  317. ## 0.15.0 (December 29, 2017)
  318. BREAKING CHANGES:
  319. - [p2p] enable the Peer Exchange reactor by default
  320. - [types] add Timestamp field to Proposal/Vote
  321. - [types] add new fields to Header: TotalTxs, ConsensusParamsHash, LastResultsHash, EvidenceHash
  322. - [types] add Evidence to Block
  323. - [types] simplify ValidateBasic
  324. - [state] updates to support changes to the header
  325. - [state] Enforce <1/3 of validator set can change at a time
  326. FEATURES:
  327. - [state] Send indices of absent validators and addresses of byzantine validators in BeginBlock
  328. - [state] Historical ConsensusParams and ABCIResponses
  329. - [docs] Specification for the base Tendermint data structures.
  330. - [evidence] New evidence reactor for gossiping and managing evidence
  331. - [rpc] `/block_results?height=X` returns the DeliverTx results for a given height.
  332. IMPROVEMENTS:
  333. - [consensus] Better handling of corrupt WAL file
  334. BUG FIXES:
  335. - [lite] fix race
  336. - [state] validate block.Header.ValidatorsHash
  337. - [p2p] allow seed addresses to be prefixed with eg. `tcp://`
  338. - [p2p] use consistent key to refer to peers so we dont try to connect to existing peers
  339. - [cmd] fix `tendermint init` to ignore files that are there and generate files that aren't.
  340. ## 0.14.0 (December 11, 2017)
  341. BREAKING CHANGES:
  342. - consensus/wal: removed separator
  343. - rpc/client: changed Subscribe/Unsubscribe/UnsubscribeAll funcs signatures to be identical to event bus.
  344. FEATURES:
  345. - new `tendermint lite` command (and `lite/proxy` pkg) for running a light-client RPC proxy.
  346. NOTE it is currently insecure and its APIs are not yet covered by semver
  347. IMPROVEMENTS:
  348. - rpc/client: can act as event bus subscriber (See https://github.com/tendermint/tendermint/issues/945).
  349. - p2p: use exponential backoff from seconds to hours when attempting to reconnect to persistent peer
  350. - config: moniker defaults to the machine's hostname instead of "anonymous"
  351. BUG FIXES:
  352. - p2p: no longer exit if one of the seed addresses is incorrect
  353. ## 0.13.0 (December 6, 2017)
  354. BREAKING CHANGES:
  355. - abci: update to v0.8 using gogo/protobuf; includes tx tags, vote info in RequestBeginBlock, data.Bytes everywhere, use int64, etc.
  356. - types: block heights are now `int64` everywhere
  357. - types & node: EventSwitch and EventCache have been replaced by EventBus and EventBuffer; event types have been overhauled
  358. - node: EventSwitch methods now refer to EventBus
  359. - rpc/lib/types: RPCResponse is no longer a pointer; WSRPCConnection interface has been modified
  360. - rpc/client: WaitForOneEvent takes an EventsClient instead of types.EventSwitch
  361. - rpc/client: Add/RemoveListenerForEvent are now Subscribe/Unsubscribe
  362. - rpc/core/types: ResultABCIQuery wraps an abci.ResponseQuery
  363. - rpc: `/subscribe` and `/unsubscribe` take `query` arg instead of `event`
  364. - rpc: `/status` returns the LatestBlockTime in human readable form instead of in nanoseconds
  365. - mempool: cached transactions return an error instead of an ABCI response with BadNonce
  366. FEATURES:
  367. - rpc: new `/unsubscribe_all` WebSocket RPC endpoint
  368. - rpc: new `/tx_search` endpoint for filtering transactions by more complex queries
  369. - p2p/trust: new trust metric for tracking peers. See ADR-006
  370. - config: TxIndexConfig allows to set what DeliverTx tags to index
  371. IMPROVEMENTS:
  372. - New asynchronous events system using `tmlibs/pubsub`
  373. - logging: Various small improvements
  374. - consensus: Graceful shutdown when app crashes
  375. - tests: Fix various non-deterministic errors
  376. - p2p: more defensive programming
  377. BUG FIXES:
  378. - consensus: fix panic where prs.ProposalBlockParts is not initialized
  379. - p2p: fix panic on bad channel
  380. ## 0.12.1 (November 27, 2017)
  381. BUG FIXES:
  382. - upgrade tmlibs dependency to enable Windows builds for Tendermint
  383. ## 0.12.0 (October 27, 2017)
  384. BREAKING CHANGES:
  385. - rpc/client: websocket ResultsCh and ErrorsCh unified in ResponsesCh.
  386. - rpc/client: ABCIQuery no longer takes `prove`
  387. - state: remove GenesisDoc from state.
  388. - consensus: new binary WAL format provides efficiency and uses checksums to detect corruption
  389. - use scripts/wal2json to convert to json for debugging
  390. FEATURES:
  391. - new `certifiers` pkg contains the tendermint light-client library (name subject to change)!
  392. - rpc: `/genesis` includes the `app_options` .
  393. - rpc: `/abci_query` takes an additional `height` parameter to support historical queries.
  394. - rpc/client: new ABCIQueryWithOptions supports options like `trusted` (set false to get a proof) and `height` to query a historical height.
  395. IMPROVEMENTS:
  396. - rpc: `/genesis` result includes `app_options`
  397. - rpc/lib/client: add jitter to reconnects.
  398. - rpc/lib/types: `RPCError` satisfies the `error` interface.
  399. BUG FIXES:
  400. - rpc/client: fix ws deadlock after stopping
  401. - blockchain: fix panic on AddBlock when peer is nil
  402. - mempool: fix sending on TxsAvailable when a tx has been invalidated
  403. - consensus: dont run WAL catchup if we fast synced
  404. ## 0.11.1 (October 10, 2017)
  405. IMPROVEMENTS:
  406. - blockchain/reactor: respondWithNoResponseMessage for missing height
  407. BUG FIXES:
  408. - rpc: fixed client WebSocket timeout
  409. - rpc: client now resubscribes on reconnection
  410. - rpc: fix panics on missing params
  411. - rpc: fix `/dump_consensus_state` to have normal json output (NOTE: technically breaking, but worth a bug fix label)
  412. - types: fixed out of range error in VoteSet.addVote
  413. - consensus: fix wal autofile via https://github.com/tendermint/tmlibs/blob/master/CHANGELOG.md#032-october-2-2017
  414. ## 0.11.0 (September 22, 2017)
  415. BREAKING:
  416. - genesis file: validator `amount` is now `power`
  417. - abci: Info, BeginBlock, InitChain all take structs
  418. - rpc: various changes to match JSONRPC spec (http://www.jsonrpc.org/specification), including breaking ones:
  419. - requests that previously returned HTTP code 4XX now return 200 with an error code in the JSONRPC.
  420. - `rpctypes.RPCResponse` uses new `RPCError` type instead of `string`.
  421. - cmd: if there is no genesis, exit immediately instead of waiting around for one to show.
  422. - types: `Signer.Sign` returns an error.
  423. - state: every validator set change is persisted to disk, which required some changes to the `State` structure.
  424. - p2p: new `p2p.Peer` interface used for all reactor methods (instead of `*p2p.Peer` struct).
  425. FEATURES:
  426. - rpc: `/validators?height=X` allows querying of validators at previous heights.
  427. - rpc: Leaving the `height` param empty for `/block`, `/validators`, and `/commit` will return the value for the latest height.
  428. IMPROVEMENTS:
  429. - docs: Moved all docs from the website and tools repo in, converted to `.rst`, and cleaned up for presentation on `tendermint.readthedocs.io`
  430. BUG FIXES:
  431. - fix WAL openning issue on Windows
  432. ## 0.10.4 (September 5, 2017)
  433. IMPROVEMENTS:
  434. - docs: Added Slate docs to each rpc function (see rpc/core)
  435. - docs: Ported all website docs to Read The Docs
  436. - config: expose some p2p params to tweak performance: RecvRate, SendRate, and MaxMsgPacketPayloadSize
  437. - rpc: Upgrade the websocket client and server, including improved auto reconnect, and proper ping/pong
  438. BUG FIXES:
  439. - consensus: fix panic on getVoteBitArray
  440. - consensus: hang instead of panicking on byzantine consensus failures
  441. - cmd: dont load config for version command
  442. ## 0.10.3 (August 10, 2017)
  443. FEATURES:
  444. - control over empty block production:
  445. - new flag, `--consensus.create_empty_blocks`; when set to false, blocks are only created when there are txs or when the AppHash changes.
  446. - new config option, `consensus.create_empty_blocks_interval`; an empty block is created after this many seconds.
  447. - in normal operation, `create_empty_blocks = true` and `create_empty_blocks_interval = 0`, so blocks are being created all the time (as in all previous versions of tendermint). The number of empty blocks can be reduced by increasing `create_empty_blocks_interval` or by setting `create_empty_blocks = false`.
  448. - new `TxsAvailable()` method added to Mempool that returns a channel which fires when txs are available.
  449. - new heartbeat message added to consensus reactor to notify peers that a node is waiting for txs before entering propose step.
  450. - rpc: Add `syncing` field to response returned by `/status`. Is `true` while in fast-sync mode.
  451. IMPROVEMENTS:
  452. - various improvements to documentation and code comments
  453. BUG FIXES:
  454. - mempool: pass height into constructor so it doesn't always start at 0
  455. ## 0.10.2 (July 10, 2017)
  456. FEATURES:
  457. - Enable lower latency block commits by adding consensus reactor sleep durations and p2p flush throttle timeout to the config
  458. IMPROVEMENTS:
  459. - More detailed logging in the consensus reactor and state machine
  460. - More in-code documentation for many exposed functions, especially in consensus/reactor.go and p2p/switch.go
  461. - Improved readability for some function definitions and code blocks with long lines
  462. ## 0.10.1 (June 28, 2017)
  463. FEATURES:
  464. - Use `--trace` to get stack traces for logged errors
  465. - types: GenesisDoc.ValidatorHash returns the hash of the genesis validator set
  466. - types: GenesisDocFromFile parses a GenesiDoc from a JSON file
  467. IMPROVEMENTS:
  468. - Add a Code of Conduct
  469. - Variety of improvements as suggested by `megacheck` tool
  470. - rpc: deduplicate tests between rpc/client and rpc/tests
  471. - rpc: addresses without a protocol prefix default to `tcp://`. `http://` is also accepted as an alias for `tcp://`
  472. - cmd: commands are more easily reuseable from other tools
  473. - DOCKER: automate build/push
  474. BUG FIXES:
  475. - Fix log statements using keys with spaces (logger does not currently support spaces)
  476. - rpc: set logger on websocket connection
  477. - rpc: fix ws connection stability by setting write deadline on pings
  478. ## 0.10.0 (June 2, 2017)
  479. Includes major updates to configuration, logging, and json serialization.
  480. Also includes the Grand Repo-Merge of 2017.
  481. BREAKING CHANGES:
  482. - Config and Flags:
  483. - The `config` map is replaced with a [`Config` struct](https://github.com/tendermint/tendermint/blob/master/config/config.go#L11),
  484. containing substructs: `BaseConfig`, `P2PConfig`, `MempoolConfig`, `ConsensusConfig`, `RPCConfig`
  485. - This affects the following flags:
  486. - `--seeds` is now `--p2p.seeds`
  487. - `--node_laddr` is now `--p2p.laddr`
  488. - `--pex` is now `--p2p.pex`
  489. - `--skip_upnp` is now `--p2p.skip_upnp`
  490. - `--rpc_laddr` is now `--rpc.laddr`
  491. - `--grpc_laddr` is now `--rpc.grpc_laddr`
  492. - Any configuration option now within a substract must come under that heading in the `config.toml`, for instance:
  493. ```
  494. [p2p]
  495. laddr="tcp://1.2.3.4:46656"
  496. [consensus]
  497. timeout_propose=1000
  498. ```
  499. - Use viper and `DefaultConfig() / TestConfig()` functions to handle defaults, and remove `config/tendermint` and `config/tendermint_test`
  500. - Change some function and method signatures to
  501. - Change some [function and method signatures](https://gist.github.com/ebuchman/640d5fc6c2605f73497992fe107ebe0b) accomodate new config
  502. - Logger
  503. - Replace static `log15` logger with a simple interface, and provide a new implementation using `go-kit`.
  504. See our new [logging library](https://github.com/tendermint/tmlibs/log) and [blog post](https://tendermint.com/blog/abstracting-the-logger-interface-in-go) for more details
  505. - Levels `warn` and `notice` are removed (you may need to change them in your `config.toml`!)
  506. - Change some [function and method signatures](https://gist.github.com/ebuchman/640d5fc6c2605f73497992fe107ebe0b) to accept a logger
  507. - JSON serialization:
  508. - Replace `[TypeByte, Xxx]` with `{"type": "some-type", "data": Xxx}` in RPC and all `.json` files by using `go-wire/data`. For instance, a public key is now:
  509. ```
  510. "pub_key": {
  511. "type": "ed25519",
  512. "data": "83DDF8775937A4A12A2704269E2729FCFCD491B933C4B0A7FFE37FE41D7760D0"
  513. }
  514. ```
  515. - Remove type information about RPC responses, so `[TypeByte, {"jsonrpc": "2.0", ... }]` is now just `{"jsonrpc": "2.0", ... }`
  516. - Change `[]byte` to `data.Bytes` in all serialized types (for hex encoding)
  517. - Lowercase the JSON tags in `ValidatorSet` fields
  518. - Introduce `EventDataInner` for serializing events
  519. - Other:
  520. - Send InitChain message in handshake if `appBlockHeight == 0`
  521. - Do not include the `Accum` field when computing the validator hash. This makes the ValidatorSetHash unique for a given validator set, rather than changing with every block (as the Accum changes)
  522. - Unsafe RPC calls are not enabled by default. This includes `/dial_seeds`, and all calls prefixed with `unsafe`. Use the `--rpc.unsafe` flag to enable.
  523. FEATURES:
  524. - Per-module log levels. For instance, the new default is `state:info,*:error`, which means the `state` package logs at `info` level, and everything else logs at `error` level
  525. - Log if a node is validator or not in every consensus round
  526. - Use ldflags to set git hash as part of the version
  527. - Ignore `address` and `pub_key` fields in `priv_validator.json` and overwrite them with the values derrived from the `priv_key`
  528. IMPROVEMENTS:
  529. - Merge `tendermint/go-p2p -> tendermint/tendermint/p2p` and `tendermint/go-rpc -> tendermint/tendermint/rpc/lib`
  530. - Update paths for grand repo merge:
  531. - `go-common -> tmlibs/common`
  532. - `go-data -> go-wire/data`
  533. - All other `go-` libs, except `go-crypto` and `go-wire`, are merged under `tmlibs`
  534. - No global loggers (loggers are passed into constructors, or preferably set with a SetLogger method)
  535. - Return HTTP status codes with errors for RPC responses
  536. - Limit `/blockchain_info` call to return a maximum of 20 blocks
  537. - Use `.Wrap()` and `.Unwrap()` instead of eg. `PubKeyS` for `go-crypto` types
  538. - RPC JSON responses use pretty printing (via `json.MarshalIndent`)
  539. - Color code different instances of the consensus for tests
  540. - Isolate viper to `cmd/tendermint/commands` and do not read config from file for tests
  541. ## 0.9.2 (April 26, 2017)
  542. BUG FIXES:
  543. - Fix bug in `ResetPrivValidator` where we were using the global config and log (causing external consumers, eg. basecoin, to fail).
  544. ## 0.9.1 (April 21, 2017)
  545. FEATURES:
  546. - Transaction indexing - txs are indexed by their hash using a simple key-value store; easily extended to more advanced indexers
  547. - New `/tx?hash=X` endpoint to query for transactions and their DeliverTx result by hash. Optionally returns a proof of the tx's inclusion in the block
  548. - `tendermint testnet` command initializes files for a testnet
  549. IMPROVEMENTS:
  550. - CLI now uses Cobra framework
  551. - TMROOT is now TMHOME (TMROOT will stop working in 0.10.0)
  552. - `/broadcast_tx_XXX` also returns the Hash (can be used to query for the tx)
  553. - `/broadcast_tx_commit` also returns the height the block was committed in
  554. - ABCIResponses struct persisted to disk before calling Commit; makes handshake replay much cleaner
  555. - WAL uses #ENDHEIGHT instead of #HEIGHT (#HEIGHT will stop working in 0.10.0)
  556. - Peers included via `--seeds`, under `seeds` in the config, or in `/dial_seeds` are now persistent, and will be reconnected to if the connection breaks
  557. BUG FIXES:
  558. - Fix bug in fast-sync where we stop syncing after a peer is removed, even if they're re-added later
  559. - Fix handshake replay to handle validator set changes and results of DeliverTx when we crash after app.Commit but before state.Save()
  560. ## 0.9.0 (March 6, 2017)
  561. BREAKING CHANGES:
  562. - Update ABCI to v0.4.0, where Query is now `Query(RequestQuery) ResponseQuery`, enabling precise proofs at particular heights:
  563. ```
  564. message RequestQuery{
  565. bytes data = 1;
  566. string path = 2;
  567. uint64 height = 3;
  568. bool prove = 4;
  569. }
  570. message ResponseQuery{
  571. CodeType code = 1;
  572. int64 index = 2;
  573. bytes key = 3;
  574. bytes value = 4;
  575. bytes proof = 5;
  576. uint64 height = 6;
  577. string log = 7;
  578. }
  579. ```
  580. - `BlockMeta` data type unifies its Hash and PartSetHash under a `BlockID`:
  581. ```
  582. type BlockMeta struct {
  583. BlockID BlockID `json:"block_id"` // the block hash and partsethash
  584. Header *Header `json:"header"` // The block's Header
  585. }
  586. ```
  587. - `ValidatorSet.Proposer` is exposed as a field and persisted with the `State`. Use `GetProposer()` to initialize or update after validator-set changes.
  588. - `tendermint gen_validator` command output is now pure JSON
  589. FEATURES:
  590. - New RPC endpoint `/commit?height=X` returns header and commit for block at height `X`
  591. - Client API for each endpoint, including mocks for testing
  592. IMPROVEMENTS:
  593. - `Node` is now a `BaseService`
  594. - Simplified starting Tendermint in-process from another application
  595. - Better organized Makefile
  596. - Scripts for auto-building binaries across platforms
  597. - Docker image improved, slimmed down (using Alpine), and changed from tendermint/tmbase to tendermint/tendermint
  598. - New repo files: `CONTRIBUTING.md`, Github `ISSUE_TEMPLATE`, `CHANGELOG.md`
  599. - Improvements on CircleCI for managing build/test artifacts
  600. - Handshake replay is doen through the consensus package, possibly using a mockApp
  601. - Graceful shutdown of RPC listeners
  602. - Tests for the PEX reactor and DialSeeds
  603. BUG FIXES:
  604. - Check peer.Send for failure before updating PeerState in consensus
  605. - Fix panic in `/dial_seeds` with invalid addresses
  606. - Fix proposer selection logic in ValidatorSet by taking the address into account in the `accumComparable`
  607. - Fix inconcistencies with `ValidatorSet.Proposer` across restarts by persisting it in the `State`
  608. ## 0.8.0 (January 13, 2017)
  609. BREAKING CHANGES:
  610. - New data type `BlockID` to represent blocks:
  611. ```
  612. type BlockID struct {
  613. Hash []byte `json:"hash"`
  614. PartsHeader PartSetHeader `json:"parts"`
  615. }
  616. ```
  617. - `Vote` data type now includes validator address and index:
  618. ```
  619. type Vote struct {
  620. ValidatorAddress []byte `json:"validator_address"`
  621. ValidatorIndex int `json:"validator_index"`
  622. Height int `json:"height"`
  623. Round int `json:"round"`
  624. Type byte `json:"type"`
  625. BlockID BlockID `json:"block_id"` // zero if vote is nil.
  626. Signature crypto.Signature `json:"signature"`
  627. }
  628. ```
  629. - Update TMSP to v0.3.0, where it is now called ABCI and AppendTx is DeliverTx
  630. - Hex strings in the RPC are now "0x" prefixed
  631. FEATURES:
  632. - New message type on the ConsensusReactor, `Maj23Msg`, for peers to alert others they've seen a Maj23,
  633. in order to track and handle conflicting votes intelligently to prevent Byzantine faults from causing halts:
  634. ```
  635. type VoteSetMaj23Message struct {
  636. Height int
  637. Round int
  638. Type byte
  639. BlockID types.BlockID
  640. }
  641. ```
  642. - Configurable block part set size
  643. - Validator set changes
  644. - Optionally skip TimeoutCommit if we have all the votes
  645. - Handshake between Tendermint and App on startup to sync latest state and ensure consistent recovery from crashes
  646. - GRPC server for BroadcastTx endpoint
  647. IMPROVEMENTS:
  648. - Less verbose logging
  649. - Better test coverage (37% -> 49%)
  650. - Canonical SignBytes for signable types
  651. - Write-Ahead Log for Mempool and Consensus via tmlibs/autofile
  652. - Better in-process testing for the consensus reactor and byzantine faults
  653. - Better crash/restart testing for individual nodes at preset failure points, and of networks at arbitrary points
  654. - Better abstraction over timeout mechanics
  655. BUG FIXES:
  656. - Fix memory leak in mempool peer
  657. - Fix panic on POLRound=-1
  658. - Actually set the CommitTime
  659. - Actually send BeginBlock message
  660. - Fix a liveness issues caused by Byzantine proposals/votes. Uses the new `Maj23Msg`.
  661. ## 0.7.4 (December 14, 2016)
  662. FEATURES:
  663. - Enable the Peer Exchange reactor with the `--pex` flag for more resilient gossip network (feature still in development, beware dragons)
  664. IMPROVEMENTS:
  665. - Remove restrictions on RPC endpoint `/dial_seeds` to enable manual network configuration
  666. ## 0.7.3 (October 20, 2016)
  667. IMPROVEMENTS:
  668. - Type safe FireEvent
  669. - More WAL/replay tests
  670. - Cleanup some docs
  671. BUG FIXES:
  672. - Fix deadlock in mempool for synchronous apps
  673. - Replay handles non-empty blocks
  674. - Fix race condition in HeightVoteSet
  675. ## 0.7.2 (September 11, 2016)
  676. BUG FIXES:
  677. - Set mustConnect=false so tendermint will retry connecting to the app
  678. ## 0.7.1 (September 10, 2016)
  679. FEATURES:
  680. - New TMSP connection for Query/Info
  681. - New RPC endpoints:
  682. - `tmsp_query`
  683. - `tmsp_info`
  684. - Allow application to filter peers through Query (off by default)
  685. IMPROVEMENTS:
  686. - TMSP connection type enforced at compile time
  687. - All listen/client urls use a "tcp://" or "unix://" prefix
  688. BUG FIXES:
  689. - Save LastSignature/LastSignBytes to `priv_validator.json` for recovery
  690. - Fix event unsubscribe
  691. - Fix fastsync/blockchain reactor
  692. ## 0.7.0 (August 7, 2016)
  693. BREAKING CHANGES:
  694. - Strict SemVer starting now!
  695. - Update to ABCI v0.2.0
  696. - Validation types now called Commit
  697. - NewBlock event only returns the block header
  698. FEATURES:
  699. - TMSP and RPC support TCP and UNIX sockets
  700. - Addition config options including block size and consensus parameters
  701. - New WAL mode `cswal_light`; logs only the validator's own votes
  702. - New RPC endpoints:
  703. - for starting/stopping profilers, and for updating config
  704. - `/broadcast_tx_commit`, returns when tx is included in a block, else an error
  705. - `/unsafe_flush_mempool`, empties the mempool
  706. IMPROVEMENTS:
  707. - Various optimizations
  708. - Remove bad or invalidated transactions from the mempool cache (allows later duplicates)
  709. - More elaborate testing using CircleCI including benchmarking throughput on 4 digitalocean droplets
  710. BUG FIXES:
  711. - Various fixes to WAL and replay logic
  712. - Various race conditions
  713. ## PreHistory
  714. Strict versioning only began with the release of v0.7.0, in late summer 2016.
  715. The project itself began in early summer 2014 and was workable decentralized cryptocurrency software by the end of that year.
  716. Through the course of 2015, in collaboration with Eris Industries (now Monax Indsutries),
  717. many additional features were integrated, including an implementation from scratch of the Ethereum Virtual Machine.
  718. That implementation now forms the heart of [Burrow](https://github.com/hyperledger/burrow).
  719. In the later half of 2015, the consensus algorithm was upgraded with a more asynchronous design and a more deterministic and robust implementation.
  720. By late 2015, frustration with the difficulty of forking a large monolithic stack to create alternative cryptocurrency designs led to the
  721. invention of the Application Blockchain Interface (ABCI), then called the Tendermint Socket Protocol (TMSP).
  722. The Ethereum Virtual Machine and various other transaction features were removed, and Tendermint was whittled down to a core consensus engine
  723. driving an application running in another process.
  724. The ABCI interface and implementation were iterated on and improved over the course of 2016,
  725. until versioned history kicked in with v0.7.0.