From: CryptoManiac Date: Thu, 31 Mar 2016 20:38:29 +0000 (+0300) Subject: Remove unused argument. X-Git-Tag: nvc-v0.5.8~12 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=06b264fc74cdd207afaa75f76f029fe14a92930b Remove unused argument. --- diff --git a/src/wallet.cpp b/src/wallet.cpp index 85bf6ac..b5fb1aa 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -752,7 +752,7 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn) // Add a transaction to the wallet, or update it. // pblock is optional, but should be provided if the transaction is known to be in a block. // If fUpdate is true, existing transactions will be updated. -bool CWallet::AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlock* pblock, bool fUpdate, bool fFindBlock) +bool CWallet::AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlock* pblock, bool fUpdate) { uint256 hash = tx.GetHash(); { @@ -1076,7 +1076,7 @@ int CWallet::ScanForWalletTransaction(const uint256& hashTx) { CTransaction tx; tx.ReadFromDisk(COutPoint(hashTx, 0)); - if (AddToWalletIfInvolvingMe(tx, NULL, true, true)) + if (AddToWalletIfInvolvingMe(tx, NULL, true)) return 1; return 0; } diff --git a/src/wallet.h b/src/wallet.h index 34540fd..a0e2f1d 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -210,7 +210,7 @@ public: void MarkDirty(); bool AddToWallet(const CWalletTx& wtxIn); - bool AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlock* pblock, bool fUpdate = false, bool fFindBlock = false); + bool AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlock* pblock, bool fUpdate = false); bool EraseFromWallet(uint256 hash); void ClearOrphans(); void WalletUpdateSpent(const CTransaction& prevout, bool fBlock = false);