Skip to content

Commit

Permalink
Fix for prevout.hash error
Browse files Browse the repository at this point in the history
  • Loading branch information
metaspartan committed Jan 29, 2021
1 parent cf91c01 commit f784f4b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/namecoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint256, CTxIndex>& 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();


Expand Down

0 comments on commit f784f4b

Please sign in to comment.