Update for new Tendermint RPC interface

This commit is contained in:
Christopher Goes 2018-05-25 01:07:18 +02:00
parent 7da5833b81
commit 14744cff20
No known key found for this signature in database
GPG Key ID: E828D98232D328D3
1 changed files with 2 additions and 5 deletions

View File

@ -61,15 +61,12 @@ func searchTx(ctx context.CoreContext, cdc *wire.Codec, tags []string) ([]byte,
}
prove := !viper.GetBool(client.FlagTrustNode)
// TODO: take these as args
page := 0
perPage := 100
res, err := node.TxSearch(query, prove, page, perPage)
txs, err := node.TxSearch(query, prove)
if err != nil {
return nil, err
}
info, err := formatTxResults(cdc, res.Txs)
info, err := formatTxResults(cdc, txs)
if err != nil {
return nil, err
}