mirror of
https://github.com/tendermint/tendermint.git
synced 2025-12-23 06:15:19 +00:00
Fixed match.events order in light client rpc
This commit is contained in:
@@ -177,7 +177,7 @@ func makeTxSearchFuncMatchEvents(c *lrpc.Client) rpcTxSearchFuncMatchEvents {
|
||||
matchEvents bool,
|
||||
) (*ctypes.ResultTxSearch, error) {
|
||||
if matchEvents {
|
||||
query = query + " AND match.events = 1"
|
||||
query = "match.events = 1 AND " + query
|
||||
}
|
||||
return c.TxSearch(ctx.Context(), query, prove, page, perPage, orderBy)
|
||||
}
|
||||
@@ -202,7 +202,7 @@ func makeBlockSearchFuncMatchEvents(c *lrpc.Client) rpcBlockSearchFuncMatchEvent
|
||||
matchEvents bool,
|
||||
) (*ctypes.ResultBlockSearch, error) {
|
||||
if matchEvents {
|
||||
query = query + " AND match.events = 1"
|
||||
query = "match.events = 1 AND " + query
|
||||
}
|
||||
return c.BlockSearch(ctx.Context(), query, page, perPage, orderBy)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user