OSDN Git Service

fix apply tx to handle the retire (#366)
authorPaladz <yzhu101@uottawa.ca>
Tue, 6 Feb 2018 08:57:51 +0000 (16:57 +0800)
committerGitHub <noreply@github.com>
Tue, 6 Feb 2018 08:57:51 +0000 (16:57 +0800)
protocol/state/utxo_view.go

index 61b6908..e5eaff3 100644 (file)
@@ -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