From f784f4b27ed32b51ffe857747c5e53254b15b8d8 Mon Sep 17 00:00:00 2001 From: carsenk Date: Fri, 29 Jan 2021 12:30:03 -0700 Subject: [PATCH] Fix for prevout.hash error --- src/namecoin.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/namecoin.cpp b/src/namecoin.cpp index 89d9ad0f..a9f26c4e 100644 --- a/src/namecoin.cpp +++ b/src/namecoin.cpp @@ -604,13 +604,13 @@ CHooks* InitHook() // version for connectInputs. Used when accepting blocks. bool IsNameFeeEnough(CTxDB& txdb, const CTransaction& tx, const NameTxInfo& nti, const CBlockIndex* pindexBlock, const map& mapTestPool, bool fBlock, bool fMiner) { -// get tx fee -// Note: if fBlock and fMiner equal false then FetchInputs will search mempool + // get tx fee + // Note: if fBlock and fMiner equal false then FetchInputs will search mempool int64_t txFee; MapPrevTx mapInputs; -// bool fInvalid = false; -// if (!tx.FetchInputs(txdb, mapTestPool, fBlock, fMiner, mapInputs, fInvalid)) -// return false; + bool fInvalid = false; + if (!tx.FetchInputs(txdb, mapTestPool, fBlock, fMiner, mapInputs, fInvalid)) + return false; txFee = tx.GetValueIn(mapInputs) - tx.GetValueOut();