OSDN Git Service

optimise
[bytom/vapor.git] / protocol / bc / types / map.go
index 8363a88..b75c9c6 100644 (file)
@@ -112,14 +112,13 @@ func mapTx(tx *TxData) (headerID bc.Hash, hdr *bc.TxHeader, entryMap map[bc.Hash
                        coinbase = bc.NewCoinbase(inp.Arbitrary)
                        coinbaseID := addEntry(coinbase)
                        totalAmount := uint64(0)
-                       asset := consensus.BTMAssetID
                        for _, out := range tx.Outputs {
                                totalAmount += out.AssetAmount().Amount
                        }
                        muxSources[i] = &bc.ValueSource{
                                Ref: &coinbaseID,
                                Value: &bc.AssetAmount{
-                                       AssetId: asset,
+                                       AssetId: consensus.BTMAssetID,
                                        Amount:  totalAmount,
                                },
                        }