• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Commit

Golang implemented sidechain for Bytom


Commit MetaInfo

Revision52a8ad67dcd7371cafcd9c83dcfafed246b73453 (tree)
Time2019-07-22 19:29:57
Authormars <mars@byto...>
Commitermars

Log Message

modify error

Change Summary

Incremental Difference

--- a/toolbar/reward/service/node.go
+++ b/toolbar/reward/service/node.go
@@ -19,10 +19,6 @@ 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-
2622 func (n *Node) GetBlockByHeight(height uint64) (*types.Block, error) {
2723 return n.getRawBlock(&getRawBlockReq{BlockHeight: height})
2824 }
--- a/toolbar/reward/service/transaction.go
+++ b/toolbar/reward/service/transaction.go
@@ -103,7 +103,7 @@ func (n *Node) signTx(passwd string, tmpl txbuilder.Template) (*txbuilder.Templa
103103 }
104104
105105 if !resp.SignComplete {
106- return nil, errors.Wrap(err, "sign fail")
106+ return nil, errors.New("sign fail")
107107 }
108108
109109 return resp.Tx, nil
Show on old repository browser