From ff305240796387fc98f71abaf7125e1166fd34de Mon Sep 17 00:00:00 2001 From: Paladz Date: Tue, 6 Feb 2018 16:57:51 +0800 Subject: [PATCH] fix apply tx to handle the retire (#366) --- protocol/state/utxo_view.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/state/utxo_view.go b/protocol/state/utxo_view.go index 61b69086..e5eaff38 100644 --- a/protocol/state/utxo_view.go +++ b/protocol/state/utxo_view.go @@ -51,7 +51,7 @@ func (view *UtxoViewpoint) ApplyTransaction(block *bc.Block, tx *bc.Tx, statusFa for _, id := range tx.TxHeader.ResultIds { output, err := tx.Output(*id) if err != nil { - return err + continue } if statusFail && *output.Source.Value.AssetId != *consensus.BTMAssetID { continue -- 2.11.0