diff options
| author | Pieter Wuille <[email protected]> | 2012-04-17 11:04:29 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-04-17 11:04:29 -0700 |
| commit | 1ffeb89a52d82bb62860786ff6426224437ca7b1 (patch) | |
| tree | 62a79e33a866c2a92f548cecb6148c7339f8beaf /src/script.cpp | |
| parent | Merge pull request #1106 from jgarzik/sign-compare (diff) | |
| parent | Further reduce header dependencies (diff) | |
| download | discoin-1ffeb89a52d82bb62860786ff6426224437ca7b1.tar.xz discoin-1ffeb89a52d82bb62860786ff6426224437ca7b1.zip | |
Merge pull request #1112 from sipa/saneserial
Further reduce header dependencies
Diffstat (limited to 'src/script.cpp')
| -rw-r--r-- | src/script.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/script.cpp b/src/script.cpp index 21f101e1c..fc0a5b3ea 100644 --- a/src/script.cpp +++ b/src/script.cpp @@ -2,11 +2,17 @@ // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file license.txt or http://www.opensource.org/licenses/mit-license.php. -#include "headers.h" +#include <boost/foreach.hpp> using namespace std; using namespace boost; +#include "script.h" +#include "keystore.h" +#include "bignum.h" +#include "key.h" +#include "main.h" + bool CheckSig(vector<unsigned char> vchSig, vector<unsigned char> vchPubKey, CScript scriptCode, const CTransaction& txTo, unsigned int nIn, int nHashType); @@ -1086,7 +1092,7 @@ uint256 SignatureHash(CScript scriptCode, const CTransaction& txTo, unsigned int } // Serialize and hash - CDataStream ss(SER_GETHASH); + CDataStream ss(SER_GETHASH, 0); ss.reserve(10000); ss << txTmp << nHashType; return Hash(ss.begin(), ss.end()); |