• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Commit

Golang implemented sidechain for Bytom


Commit MetaInfo

Revisiona720961e57e5b6f4eaa0acfc8300110cbe9cc193 (tree)
Time2019-07-22 19:39:12
Authormars <mars@byto...>
Commitermars

Log Message

add block hash

Change Summary

Incremental Difference

--- a/toolbar/reward/service/node.go
+++ b/toolbar/reward/service/node.go
@@ -19,6 +19,10 @@ func NewNode(hostPort string) *Node {
1919 return &Node{hostPort: hostPort}
2020 }
2121
22+func (n *Node) GetBlockByHash(hash string) (*types.Block, error) {
23+ return n.getRawBlock(&getRawBlockReq{BlockHash: hash})
24+}
25+
2226 func (n *Node) GetBlockByHeight(height uint64) (*types.Block, error) {
2327 return n.getRawBlock(&getRawBlockReq{BlockHeight: height})
2428 }
Show on old repository browser