diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2012-01-18 13:36:44 -0500 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2012-02-02 20:03:33 -0500 |
commit | c11e2b8679e13f739a58faf2a3439d4aaed24364 (patch) | |
tree | f2c18d43be3388dd321cdd5ac9a2e4a0f3c2c811 /src/main.h | |
parent | d841fc969a3a300ebeaa4279320235f2ff2b0533 (diff) | |
download | bitcoin-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.h | 3 |
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); |