From effc2770f50554416e7d7b27f5c5b5cef9489440 Mon Sep 17 00:00:00 2001 From: Eric Lombrozo Date: Tue, 8 Jan 2013 03:02:51 -0800 Subject: Created core.h/core.cpp, added to makefiles. Started moving core structures from main to core beginning with COutPoint. --- src/core.cpp | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/core.cpp (limited to 'src/core.cpp') diff --git a/src/core.cpp b/src/core.cpp new file mode 100644 index 000000000..cb1053b69 --- /dev/null +++ b/src/core.cpp @@ -0,0 +1,6 @@ +// Copyright (c) 2009-2010 Satoshi Nakamoto +// Copyright (c) 2009-2013 The Bitcoin developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#include "core.h" \ No newline at end of file -- cgit v1.2.3 From 05df3fc68d68e87415ed9e534db3ea3160dc3092 Mon Sep 17 00:00:00 2001 From: Eric Lombrozo Date: Tue, 8 Jan 2013 04:17:15 -0800 Subject: Removed AcceptToMemoryPool method from CTransaction. This method belongs to the mempool instance. Removed AreInputsStandard from CTransaction, made it a regular function in main. Moved CTransaction::GetOutputFor to CCoinsViewCache. Moved GetLegacySigOpCount and GetP2SHSigOpCount out of CTransaction into regular functions in main. Moved GetValueIn and HaveInputs from CTransaction into CCoinsViewCache. Moved AllowFree, ClientCheckInputs, CheckInputs, UpdateCoins, and CheckTransaction out of CTransaction and into main. Moved IsStandard and IsFinal out of CTransaction and put them in main as IsStandardTx and IsFinalTx. Moved GetValueOut out of CTransaction into main. Moved CTxIn, CTxOut, and CTransaction into core. Added minimum fee parameter to CTxOut::IsDust() temporarily until CTransaction is moved to core.h so that CTxOut needn't know about CTransaction. --- src/core.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core.cpp') diff --git a/src/core.cpp b/src/core.cpp index cb1053b69..b12c90efe 100644 --- a/src/core.cpp +++ b/src/core.cpp @@ -3,4 +3,5 @@ // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include "core.h" \ No newline at end of file +#include "core.h" + -- cgit v1.2.3