• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Commit

Golang implemented sidechain for Bytom


Commit MetaInfo

Revision106fc48a87a3e8a515d1e0c3bb72a40aac166cb6 (tree)
Time2019-07-02 16:34:13
AuthorHAOYUatHZ <haoyu@prot...>
CommiterHAOYUatHZ

Log Message

filter source block height

Change Summary

Incremental Difference

--- a/federation/api/handler.go
+++ b/federation/api/handler.go
@@ -28,6 +28,11 @@ func (s *Server) ListCrosschainTxs(c *gin.Context, listTxsReq *listCrosschainTxs
2828 }
2929 }
3030
31+ // filter source block height
32+ if srcBlockHeight, err := listTxsReq.GetFilterNum("source_block_height"); err == nil {
33+ txFilter.SourceBlockHeight = srcBlockHeight.(uint64)
34+ }
35+
3136 // filter tx hash
3237 if txHash, err := listTxsReq.GetFilterString("source_tx_hash"); err == nil && txHash != "" {
3338 txFilter.SourceTxHash = txHash
Show on old repository browser