OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix(bc): fix TxInput.SpentOutputID() (#242)
[bytom/vapor.git]
/
protocol
/
bc
/
types
/
txinput.go
diff --git
a/protocol/bc/types/txinput.go
b/protocol/bc/types/txinput.go
index
88b3bce
..
d1eeb57
100644
(file)
--- a/
protocol/bc/types/txinput.go
+++ b/
protocol/bc/types/txinput.go
@@
-136,7
+136,7
@@
func (t *TxInput) SpentOutputID() (o bc.Hash, err error) {
o, err = ComputeOutputID(&inp.SpendCommitment, VetoInputType, inp.Vote)
}
- return o,
fmt.Errorf("output don't have spend output ID")
+ return o,
err
}
func (t *TxInput) readFrom(r *blockchain.Reader) (err error) {