diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-07-06 18:06:03 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-07-06 18:54:20 +0200 |
| commit | 9546a977d354b2ec6cd8455538e68fe4ba343a44 (patch) | |
| tree | 38b3ba612a2f6a3453e58e8fd84143db12042a9a /src/script/standard.cpp | |
| parent | Merge pull request #6329 (diff) | |
| parent | Policy: MOVEONLY: 3 functions to policy.o: (diff) | |
| download | discoin-9546a977d354b2ec6cd8455538e68fe4ba343a44.tar.xz discoin-9546a977d354b2ec6cd8455538e68fe4ba343a44.zip | |
Merge pull request #6335
9238ecb Policy: MOVEONLY: 3 functions to policy.o: (Luke Dashjr)
627b9de Policy: MOVEONLY: Create policy/policy.h with some constants (Jorge Timón)
Diffstat (limited to 'src/script/standard.cpp')
| -rw-r--r-- | src/script/standard.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/script/standard.cpp b/src/script/standard.cpp index ce50e3aad..66657127a 100644 --- a/src/script/standard.cpp +++ b/src/script/standard.cpp @@ -180,26 +180,6 @@ int ScriptSigArgsExpected(txnouttype t, const std::vector<std::vector<unsigned c return -1; } -bool IsStandard(const CScript& scriptPubKey, txnouttype& whichType) -{ - vector<valtype> vSolutions; - if (!Solver(scriptPubKey, whichType, vSolutions)) - return false; - - if (whichType == TX_MULTISIG) - { - unsigned char m = vSolutions.front()[0]; - unsigned char n = vSolutions.back()[0]; - // Support up to x-of-3 multisig txns as standard - if (n < 1 || n > 3) - return false; - if (m < 1 || m > n) - return false; - } - - return whichType != TX_NONSTANDARD; -} - bool ExtractDestination(const CScript& scriptPubKey, CTxDestination& addressRet) { vector<valtype> vSolutions; |