OSDN Git Service
(root)
/
bytom
/
bytom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f85f5b6
)
fix apply tx to handle the retire (#366)
author
Paladz
<yzhu101@uottawa.ca>
Tue, 6 Feb 2018 08:57:51 +0000
(16:57 +0800)
committer
GitHub
<noreply@github.com>
Tue, 6 Feb 2018 08:57:51 +0000
(16:57 +0800)
protocol/state/utxo_view.go
patch
|
blob
|
history
diff --git
a/protocol/state/utxo_view.go
b/protocol/state/utxo_view.go
index
61b6908
..
e5eaff3
100644
(file)
--- 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