diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2013-08-06 17:11:48 -0700 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2013-08-06 17:11:48 -0700 |
commit | ddd0e2f616be82fb57d68298be796c34268c6ae9 (patch) | |
tree | 6b96f78d0c90b1b59718100f76c98b5230bacb39 /src/main.h | |
parent | 1188a33d184bc6827ac7fb7839d9c5d7cb5676cf (diff) | |
parent | 159bc4819304c4394a92230c9e7b9f3416abe877 (diff) | |
download | bitcoin-ddd0e2f616be82fb57d68298be796c34268c6ae9.tar.xz |
Merge pull request #2871 from gavinandresen/simplify_maporphan
Simplify storage of orphan transactions, fix CVE-2013-4627
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(); |