Browse Source

dummy app now returns one DeliverTx tag

pull/835/head
Anton Kaliaev 7 years ago
parent
commit
cb9743e567
No known key found for this signature in database GPG Key ID: 7B6881D965918214
4 changed files with 12 additions and 4 deletions
  1. +3
    -3
      glide.lock
  2. +1
    -1
      glide.yaml
  3. +7
    -0
      rpc/client/rpc_test.go
  4. +1
    -0
      rpc/test/helpers.go

+ 3
- 3
glide.lock View File

@ -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


+ 1
- 1
glide.yaml View File

@ -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


+ 7
- 0
rpc/client/rpc_test.go View File

@ -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")
}
}
}

+ 1
- 0
rpc/test/helpers.go View File

@ -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…
Cancel
Save