CTxMemPool: eliminate redundant lock, GetHash() call

::addUnchecked()'s only caller already takes the necessary lock,
and has already calculated the TX's hash.
This commit is contained in:
Jeff Garzik
2012-07-04 01:12:44 -04:00
committed by Jeff Garzik
parent 96929a5515
commit f77654a0e9
2 changed files with 3 additions and 5 deletions

View File

@@ -1602,7 +1602,7 @@ public:
bool accept(CTxDB& txdb, CTransaction &tx,
bool fCheckInputs, bool* pfMissingInputs);
bool addUnchecked(CTransaction &tx);
bool addUnchecked(const uint256& hash, CTransaction &tx);
bool remove(CTransaction &tx);
void queryHashes(std::vector<uint256>& vtxid);