mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-01 15:41:22 +00:00
dummy app now returns one DeliverTx tag
This commit is contained in:
parent
66ad366a4f
commit
cb9743e567
6
glide.lock
generated
6
glide.lock
generated
@ -1,5 +1,5 @@
|
||||
hash: b4e6f2f40e2738e45cec07ed91a5733d94d29cdfa0c7eb686a4d0a34512e2097
|
||||
updated: 2017-11-29T18:57:12.922510534Z
|
||||
hash: dba99959eb071d0e99be1a11c608ddafe5349866c8141000efbd57f4c5f8353e
|
||||
updated: 2017-11-30T02:23:12.150634867Z
|
||||
imports:
|
||||
- name: github.com/btcsuite/btcd
|
||||
version: 8cea3866d0f7fb12d567a20744942c0d078c7d15
|
||||
@ -98,7 +98,7 @@ imports:
|
||||
- leveldb/table
|
||||
- leveldb/util
|
||||
- name: github.com/tendermint/abci
|
||||
version: 5c29adc081795b04f9d046fb51d76903c22cfa6d
|
||||
version: 72c3ea3872424fba6b564de9d722acd74e6ecedc
|
||||
subpackages:
|
||||
- client
|
||||
- example/counter
|
||||
|
@ -18,7 +18,7 @@ import:
|
||||
- package: github.com/spf13/viper
|
||||
version: v1.0.0
|
||||
- package: github.com/tendermint/abci
|
||||
version: develop
|
||||
version: 72c3ea3872424fba6b564de9d722acd74e6ecedc
|
||||
subpackages:
|
||||
- client
|
||||
- example/dummy
|
||||
|
@ -333,5 +333,12 @@ func TestTxSearch(t *testing.T) {
|
||||
results, err = c.TxSearch(fmt.Sprintf("tx.hash='%X'", anotherTxHash), false)
|
||||
require.Nil(t, err, "%+v", err)
|
||||
require.Len(t, results, 0)
|
||||
|
||||
// we query using a tag (see dummy application)
|
||||
results, err = c.TxSearch("app.creator='jae'", false)
|
||||
require.Nil(t, err, "%+v", err)
|
||||
if len(results) == 0 {
|
||||
t.Fatal("expected a lot of transactions")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -80,6 +80,7 @@ func GetConfig() *cfg.Config {
|
||||
globalConfig.P2P.ListenAddress = tm
|
||||
globalConfig.RPC.ListenAddress = rpc
|
||||
globalConfig.RPC.GRPCListenAddress = grpc
|
||||
globalConfig.TxIndex.IndexTags = "app.creator" // see dummy application
|
||||
}
|
||||
return globalConfig
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user