Skip to content

Commit

Permalink
consensus: Use virtual transaction size in minimum fee calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
lateminer committed Jan 11, 2024
1 parent 1e6f2b7 commit 16ff90a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/consensus/tx_verify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ bool Consensus::CheckTxInputs(const CTransaction& tx, TxValidationState& state,
// Blackcoin: GetMinFee
CAmount GetMinFee(const CTransaction& tx, uint32_t nTimeTx)
{
size_t nBytes = ::GetSerializeSize(tx, PROTOCOL_VERSION);
size_t nBytes = GetVirtualTransactionSize(tx);
return GetMinFee(nBytes, nTimeTx);
}

Expand Down

0 comments on commit 16ff90a

Please sign in to comment.