diff options
| author | Jeff Garzik <[email protected]> | 2012-07-04 01:12:44 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-07-04 01:12:44 -0400 |
| commit | f77654a0e9424f13cad04f82c014abd78fbb5e38 (patch) | |
| tree | 29b9dd80f03edde949c5a7abdf3a5913cd91e889 /src/main.h | |
| parent | Remove duplicate GetHash() in ConnectBlock (diff) | |
| download | discoin-f77654a0e9424f13cad04f82c014abd78fbb5e38.tar.xz discoin-f77654a0e9424f13cad04f82c014abd78fbb5e38.zip | |
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 bb094ad3c..c841fdaf1 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); |