aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2012-01-18 13:36:44 -0500
committerLuke Dashjr <luke-jr+git@utopios.org>2012-02-02 20:03:33 -0500
commitc11e2b8679e13f739a58faf2a3439d4aaed24364 (patch)
treef2c18d43be3388dd321cdd5ac9a2e4a0f3c2c811 /src/main.h
parentd841fc969a3a300ebeaa4279320235f2ff2b0533 (diff)
downloadbitcoin-c11e2b8679e13f739a58faf2a3439d4aaed24364.tar.xz
Only store transactions with missing inputs in the orphan pool.
All previous versions of bitcoin could store some types of invalid transactions in the orphan-transaction list.
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.h b/src/main.h
index 876a35d9cc..8a8b3870ec 100644
--- a/src/main.h
+++ b/src/main.h
@@ -631,7 +631,8 @@ public:
bool ReadFromDisk(COutPoint prevout);
bool DisconnectInputs(CTxDB& txdb);
bool ConnectInputs(CTxDB& txdb, std::map<uint256, CTxIndex>& mapTestPool, CDiskTxPos posThisTx,
- CBlockIndex* pindexBlock, int64& nFees, bool fBlock, bool fMiner, int64 nMinFee=0);
+ CBlockIndex* pindexBlock, int64& nFees, bool fBlock, bool fMiner, int64 nMinFee,
+ bool& fInvalid);
bool ClientConnectInputs();
bool CheckTransaction() const;
bool AcceptToMemoryPool(CTxDB& txdb, bool fCheckInputs=true, bool* pfMissingInputs=NULL);