diff options
author | Jeff Garzik <jgarzik@exmulti.com> | 2012-07-04 01:12:44 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2012-07-04 01:12:44 -0400 |
commit | f77654a0e9424f13cad04f82c014abd78fbb5e38 (patch) | |
tree | 29b9dd80f03edde949c5a7abdf3a5913cd91e889 /src/main.h | |
parent | 96929a5515bb0ffee67aab7283b5ae9fcc1641d5 (diff) |
CTxMemPool: eliminate redundant lock, GetHash() call
::addUnchecked()'s only caller already takes the necessary lock,
and has already calculated the TX's hash.
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.h b/src/main.h index bb094ad3c7..c841fdaf18 100644 --- a/src/main.h +++ b/src/main.h @@ -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); |