From f7f12ea310fc0a1e49f4ccbd3d0d79f1664db045 Mon Sep 17 00:00:00 2001 From: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com> Date: Fri, 5 Jul 2019 11:03:30 +0800 Subject: [PATCH] fix(bc): fix TxInput.SpentOutputID() (#242) * fix input.SpentOutputID * refine code --- protocol/bc/types/txinput.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/bc/types/txinput.go b/protocol/bc/types/txinput.go index 88b3bcea..d1eeb57c 100644 --- 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) { -- 2.11.0