X-Git-Url: http://git.osdn.net/view?p=bytom%2Fvapor.git;a=blobdiff_plain;f=blockchain%2Ftxbuilder%2Ffinalize.go;h=daa6308bf6616983af0bc65a7ed4577b3c4e0c85;hp=1cafe4f0727469c501debcbb519144a90c35d487;hb=f58a184bb6507d0d2bc4962b977de698abace5d6;hpb=6228102ebf8ffa17faa622662355d7c2dcdc147f diff --git a/blockchain/txbuilder/finalize.go b/blockchain/txbuilder/finalize.go index 1cafe4f0..daa6308b 100644 --- a/blockchain/txbuilder/finalize.go +++ b/blockchain/txbuilder/finalize.go @@ -88,8 +88,6 @@ func checkTxSighashCommitment(tx *types.Tx) error { args = t.Arguments case *types.ClaimInput: args = t.Arguments - case *types.DposTx: - args = t.Arguments } // Note: These numbers will need to change if more args are added such that the minimum length changes switch { @@ -133,7 +131,7 @@ func CalculateTxFee(tx *types.Tx) (fee uint64) { totalOutputBTM := uint64(0) for _, input := range tx.Inputs { - if input.InputType() != types.CoinbaseInputType && input.InputType() != types.DposInputType && input.AssetID() == *consensus.BTMAssetID { + if input.InputType() != types.CoinbaseInputType && input.AssetID() == *consensus.BTMAssetID { totalInputBTM += input.Amount() } }