X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=protocol%2Fbc%2Ftypes%2Fmap.go;fp=protocol%2Fbc%2Ftypes%2Fmap.go;h=b75c9c6bd6d4a293bdbc773eb4709126b1173ea8;hb=259c9c55c77d49cbf5cb9aa0a3a28b97fc0f8024;hp=8363a8812fbd7679a4b2309d2d94e6088e2b7cd3;hpb=042512cd66f28a32cd2745b3e1aa526ab9671235;p=bytom%2Fvapor.git diff --git a/protocol/bc/types/map.go b/protocol/bc/types/map.go index 8363a881..b75c9c6b 100644 --- a/protocol/bc/types/map.go +++ b/protocol/bc/types/map.go @@ -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, }, }