From 16ff90a0443913fed4eb2e192d748301d52c0644 Mon Sep 17 00:00:00 2001 From: lateminer <9951982+lateminer@users.noreply.github.com> Date: Thu, 11 Jan 2024 20:54:36 +0100 Subject: [PATCH] consensus: Use virtual transaction size in minimum fee calculation --- src/consensus/tx_verify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/consensus/tx_verify.cpp b/src/consensus/tx_verify.cpp index de802b81c6..d39cf2728b 100644 --- a/src/consensus/tx_verify.cpp +++ b/src/consensus/tx_verify.cpp @@ -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); }