diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2013-08-02 15:14:44 +1000 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2013-08-02 16:10:25 +1000 |
commit | 159bc4819304c4394a92230c9e7b9f3416abe877 (patch) | |
tree | 98515232dcc38c2d019597289bfbd601045760b8 /src/main.h | |
parent | 8f6f92c72bc560ecf8d12fc7235a3e2222d7c033 (diff) |
Simplify storage of orphan transactions
Orphan transactions were stored as a CDataStream pointer;
this changes the mapOrphanTransactions data structures to
store orphans as a CTransaction.
This also fixes CVE-2013-4627 by always re-serializing
transactions before relaying them.
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.h b/src/main.h index cb0ee1aaa8..ea86a2bcc0 100644 --- a/src/main.h +++ b/src/main.h @@ -1081,8 +1081,8 @@ public: std::map<uint256, CTransaction> mapTx; std::map<COutPoint, CInPoint> mapNextTx; - bool accept(CValidationState &state, CTransaction &tx, bool fLimitFree, bool* pfMissingInputs); - bool addUnchecked(const uint256& hash, CTransaction &tx); + bool accept(CValidationState &state, const CTransaction &tx, bool fLimitFree, bool* pfMissingInputs); + bool addUnchecked(const uint256& hash, const CTransaction &tx); bool remove(const CTransaction &tx, bool fRecursive = false); bool removeConflicts(const CTransaction &tx); void clear(); |