Skip to content

Commit 0ba0714

Browse files
committed
unitiaized bug
1 parent 907a9cd commit 0ba0714

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,11 +526,11 @@ bool CTransaction::CheckTransaction() const
526526
int64_t CTransaction::GetMinFee(unsigned int nBlockSize, enum GetMinFee_mode mode, unsigned int nBytes, bool fAllowFree) const
527527
{
528528
// Base fee is either MIN_TX_FEE or MIN_RELAY_TX_FEE
529-
int64_t nBaseFee;
529+
int64_t nBaseFee = 0;
530530
if (nBestHeight >= FORK_HEIGHT_2)
531-
int64_t nBaseFee = (mode == GMF_RELAY) ? MIN_RELAY_TX_FEE_2 : GetMinTxFee();
531+
nBaseFee = (mode == GMF_RELAY) ? MIN_RELAY_TX_FEE_2 : GetMinTxFee();
532532
else
533-
int64_t nBaseFee = (mode == GMF_RELAY) ? MIN_RELAY_TX_FEE : GetMinTxFee();
533+
nBaseFee = (mode == GMF_RELAY) ? MIN_RELAY_TX_FEE : GetMinTxFee();
534534

535535
if (nBytes == 0)
536536
nBytes = ::GetSerializeSize(*this, SER_NETWORK, PROTOCOL_VERSION);

0 commit comments

Comments
 (0)