aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-08-02 15:14:44 +1000
committerGavin Andresen <gavinandresen@gmail.com>2013-08-20 14:52:38 +1000
commit21696c12f3bdc3e24f5f6101644f0040a0f5f912 (patch)
treec0f9ddba7073065f40fee7b5d96f07b0d92ecc70 /src/main.h
parent08dd92060bc2e79ef62b383a8a71a07ce1e2699d (diff)
downloadbitcoin-21696c12f3bdc3e24f5f6101644f0040a0f5f912.tar.xz
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.h b/src/main.h
index 8e71e66cc8..d5cd4cf0a6 100644
--- a/src/main.h
+++ b/src/main.h
@@ -2067,7 +2067,7 @@ public:
std::map<COutPoint, CInPoint> mapNextTx;
bool accept(CValidationState &state, CTransaction &tx, bool fCheckInputs, bool fLimitFree, bool* pfMissingInputs);
- bool addUnchecked(const uint256& hash, CTransaction &tx);
+ bool addUnchecked(const uint256& hash, const CTransaction &tx);
bool remove(const CTransaction &tx, bool fRecursive = false);
bool removeConflicts(const CTransaction &tx);
void clear();