OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a40dc6
)
filter source block height
fed_prog
author
HAOYUatHZ
<haoyu@protonmail.com>
Tue, 2 Jul 2019 07:34:13 +0000
(15:34 +0800)
committer
HAOYUatHZ
<haoyu@protonmail.com>
Tue, 2 Jul 2019 07:34:13 +0000
(15:34 +0800)
federation/api/handler.go
patch
|
blob
|
history
diff --git
a/federation/api/handler.go
b/federation/api/handler.go
index
feca2fe
..
6abeada
100644
(file)
--- a/
federation/api/handler.go
+++ b/
federation/api/handler.go
@@
-28,6
+28,11
@@
func (s *Server) ListCrosschainTxs(c *gin.Context, listTxsReq *listCrosschainTxs
}
}
+ // filter source block height
+ if srcBlockHeight, err := listTxsReq.GetFilterNum("source_block_height"); err == nil {
+ txFilter.SourceBlockHeight = srcBlockHeight.(uint64)
+ }
+
// filter tx hash
if txHash, err := listTxsReq.GetFilterString("source_tx_hash"); err == nil && txHash != "" {
txFilter.SourceTxHash = txHash