changelog; minor stuff; update glide

This commit is contained in:
Ethan Buchman
2017-12-06 02:42:54 -05:00
parent 58b4a8395b
commit 42e77de6a3
4 changed files with 23 additions and 16 deletions

View File

@ -30,19 +30,25 @@ BUG FIXES:
## 0.13.0 (TBA) ## 0.13.0 (TBA)
BREAKING CHANGES: BREAKING CHANGES:
- types: EventBus and EventBuffer have replaced EventSwitch and EventCache; event types have been overhauled - abci: update to v0.8 using gogo/protobuf; includes tx tags, vote info in RequestBeginBlock, data.Bytes everywhere, use int64, etc.
- types: block heights are now `int64` everywhere
- types & node: EventSwitch and EventCache have been replaced by EventBus and EventBuffer; event types have been overhauled
- node: EventSwitch methods now refer to EventBus - node: EventSwitch methods now refer to EventBus
- rpc/lib/types: RPCResponse is no longer a pointer; WSRPCConnection interface has been modified - rpc/lib/types: RPCResponse is no longer a pointer; WSRPCConnection interface has been modified
- rpc/client: WaitForOneEvent takes an EventsClient instead of types.EventSwitch - rpc/client: WaitForOneEvent takes an EventsClient instead of types.EventSwitch
- rpc/client: Add/RemoveListenerForEvent are now Subscribe/Unsubscribe - rpc/client: Add/RemoveListenerForEvent are now Subscribe/Unsubscribe
- rpc: `/subscribe` and `/unsubscribe` take `query` arg instead of `event`
- mempool: cached transactions return an error instead of an ABCI response with BadNonce
FEATURES: FEATURES:
- rpc: new `/unsubscribe_all` WebSocket RPC endpoint - rpc: new `/unsubscribe_all` WebSocket RPC endpoint
- rpc: new `/tx_search` endpoint for filtering transactions by more complex queries
- p2p/trust: new trust metric for tracking peers. See ADR-006 - p2p/trust: new trust metric for tracking peers. See ADR-006
- config: TxIndexConfig allows to set what DeliverTx tags to index
IMPROVEMENTS: IMPROVEMENTS:
- New asynchronous events system using `tmlibs/pubsub` - New asynchronous events system using `tmlibs/pubsub`
- logging: Various small improvements - logging: Various small improvements
- consensus: Graceful shutdown when app crashes - consensus: Graceful shutdown when app crashes
- tests: Fix various non-deterministic errors - tests: Fix various non-deterministic errors
- p2p: more defensive programming - p2p: more defensive programming

15
glide.lock generated
View File

@ -1,5 +1,5 @@
hash: b0397f8c86e8131753fce91514314fe871ffb2562452a9f2125dbcd3cea600c8 hash: 09fc7f59ca6b718fe236368bb55f4801455295cfe455ea5865d544ee4dcfdc08
updated: 2017-12-02T23:34:41.775549968-05:00 updated: 2017-12-06T02:43:52.419328535-05:00
imports: imports:
- name: github.com/btcsuite/btcd - name: github.com/btcsuite/btcd
version: 2e60448ffcc6bf78332d1fe590260095f554dd78 version: 2e60448ffcc6bf78332d1fe590260095f554dd78
@ -29,8 +29,11 @@ imports:
version: 342cbe0a04158f6dcb03ca0079991a51a4248c02 version: 342cbe0a04158f6dcb03ca0079991a51a4248c02
subpackages: subpackages:
- gogoproto - gogoproto
- jsonpb
- proto - proto
- protoc-gen-gogo/descriptor - protoc-gen-gogo/descriptor
- sortkeys
- types
- name: github.com/golang/protobuf - name: github.com/golang/protobuf
version: 1e59b77b52bf8e4b449a57e6f79f21226d571845 version: 1e59b77b52bf8e4b449a57e6f79f21226d571845
subpackages: subpackages:
@ -100,7 +103,7 @@ imports:
- leveldb/table - leveldb/table
- leveldb/util - leveldb/util
- name: github.com/tendermint/abci - name: github.com/tendermint/abci
version: 48413b4839781c5c4bf96049a4b39f210ceb88c3 version: 12dca48768bbc0ac0f345a8505166874daf1f8ec
subpackages: subpackages:
- client - client
- example/code - example/code
@ -116,17 +119,17 @@ imports:
- name: github.com/tendermint/go-crypto - name: github.com/tendermint/go-crypto
version: dd20358a264c772b4a83e477b0cfce4c88a7001d version: dd20358a264c772b4a83e477b0cfce4c88a7001d
- name: github.com/tendermint/go-wire - name: github.com/tendermint/go-wire
version: 217a3c439f6497890d232ff5ed24084b43d9bfb3 version: b6fc872b42d41158a60307db4da051dd6f179415
subpackages: subpackages:
- data - data
- data/base58 - data/base58
- nowriter/tmencoding - nowriter/tmlegacy
- name: github.com/tendermint/iavl - name: github.com/tendermint/iavl
version: 594cc0c062a7174475f0ab654384038d77067917 version: 594cc0c062a7174475f0ab654384038d77067917
subpackages: subpackages:
- iavl - iavl
- name: github.com/tendermint/tmlibs - name: github.com/tendermint/tmlibs
version: 21fb7819891997c96838308b4eba5a50b07ff03f version: bfcc0217f120d3bee6730ba0789d2eb72fc2e889
subpackages: subpackages:
- autofile - autofile
- cli - cli

View File

@ -18,7 +18,7 @@ import:
- package: github.com/spf13/viper - package: github.com/spf13/viper
version: v1.0.0 version: v1.0.0
- package: github.com/tendermint/abci - package: github.com/tendermint/abci
version: develop version: ~v0.8.0
subpackages: subpackages:
- client - client
- example/dummy - example/dummy
@ -26,7 +26,7 @@ import:
- package: github.com/tendermint/go-crypto - package: github.com/tendermint/go-crypto
version: ~0.4.1 version: ~0.4.1
- package: github.com/tendermint/go-wire - package: github.com/tendermint/go-wire
version: develop version: ~0.7.2
subpackages: subpackages:
- data - data
- package: github.com/tendermint/iavl - package: github.com/tendermint/iavl
@ -34,7 +34,7 @@ import:
subpackages: subpackages:
- iavl - iavl
- package: github.com/tendermint/tmlibs - package: github.com/tendermint/tmlibs
version: develop version: ~0.5.0
subpackages: subpackages:
- autofile - autofile
- cli - cli

View File

@ -84,13 +84,12 @@ func Tx(hash []byte, prove bool) (*ctypes.ResultTx, error) {
} }
height := r.Height height := r.Height
index := int(r.Index) // XXX:overflow index := r.Index
var proof types.TxProof var proof types.TxProof
if prove { if prove {
block := blockStore.LoadBlock(height) block := blockStore.LoadBlock(height)
// TODO: handle overflow proof = block.Data.Txs.Proof(int(index)) // XXX: overflow on 32-bit machines
proof = block.Data.Txs.Proof(index)
} }
return &ctypes.ResultTx{ return &ctypes.ResultTx{
@ -188,8 +187,7 @@ func TxSearch(query string, prove bool) ([]*ctypes.ResultTx, error) {
if prove { if prove {
block := blockStore.LoadBlock(height) block := blockStore.LoadBlock(height)
// TODO: handle overflow proof = block.Data.Txs.Proof(int(index)) // XXX: overflow on 32-bit machines
proof = block.Data.Txs.Proof(int(index))
} }
apiResults[i] = &ctypes.ResultTx{ apiResults[i] = &ctypes.ResultTx{