• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Commit

Golang implemented sidechain for Bytom


Commit MetaInfo

Revisionaea2a15042c79265cadf7824bbcfa8b94a25905e (tree)
Time2019-07-05 11:48:33
AuthorHAOYUatHZ <haoyu@prot...>
CommiterHAOYUatHZ

Log Message

refine code

Change Summary

Incremental Difference

--- a/protocol/bc/types/txinput.go
+++ b/protocol/bc/types/txinput.go
@@ -131,16 +131,12 @@ func (t *TxInput) SpentOutputID() (o bc.Hash, err error) {
131131 switch inp := t.TypedInput.(type) {
132132 case *SpendInput:
133133 o, err = ComputeOutputID(&inp.SpendCommitment, SpendInputType, nil)
134- return
135134
136135 case *VetoInput:
137136 o, err = ComputeOutputID(&inp.SpendCommitment, VetoInputType, inp.Vote)
138- return
139-
140- default:
141- return o, fmt.Errorf("output don't have spend output ID")
142137 }
143138
139+ return o, err
144140 }
145141
146142 func (t *TxInput) readFrom(r *blockchain.Reader) (err error) {
Show on old repository browser