aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2012-04-13 17:48:15 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-04-13 17:48:15 -0400
commit9925d34a496b1d61a7d9976a385aa8122b1a4778 (patch)
tree1e18e8afcbffd964eab7e633937aad746c12e1c7 /src/main.h
parent6b8e7eefccf8d27c145d2e694037c2e10984f748 (diff)
Database micro-optimization for "tx" network message
Open database once per "tx" message, rather than multiple times, in the case of orphan transaction presence. As a side effect, a now-unused CTransaction::AcceptToMemoryPool() variant is removed.
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/main.h b/src/main.h
index 1d46851ac2..723f4e150c 100644
--- a/src/main.h
+++ b/src/main.h
@@ -684,7 +684,6 @@ public:
bool ClientConnectInputs();
bool CheckTransaction() const;
bool AcceptToMemoryPool(CTxDB& txdb, bool fCheckInputs=true, bool* pfMissingInputs=NULL);
- bool AcceptToMemoryPool(bool fCheckInputs=true, bool* pfMissingInputs=NULL);
protected:
const CTxOut& GetOutputFor(const CTxIn& input, const MapPrevTx& inputs) const;