diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-02-02 12:53:57 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-02-02 12:54:24 +0100 |
| commit | 3dc3149e63934f6ba9d030aec6dcfe839e592b9a (patch) | |
| tree | 9ae090fbc4635e029786b2ee98564121bea4f610 /src/script/standard.cpp | |
| parent | Merge #7451: Add link to bitcoin whitepaper (diff) | |
| parent | Decide eviction group ties based on time. (diff) | |
| download | discoin-3dc3149e63934f6ba9d030aec6dcfe839e592b9a.tar.xz discoin-3dc3149e63934f6ba9d030aec6dcfe839e592b9a.zip | |
Merge #7453: [0.13] Missing patches from 0.12
1e05727 Decide eviction group ties based on time. (Gregory Maxwell)
1e9613a Do not absolutely protect local peers from eviction. (Gregory Maxwell)
5d74309 Get rid of inaccurate ScriptSigArgsExpected (Pieter Wuille)
Diffstat (limited to 'src/script/standard.cpp')
| -rw-r--r-- | src/script/standard.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/script/standard.cpp b/src/script/standard.cpp index 30935768a..67b6af327 100644 --- a/src/script/standard.cpp +++ b/src/script/standard.cpp @@ -161,27 +161,6 @@ bool Solver(const CScript& scriptPubKey, txnouttype& typeRet, vector<vector<unsi return false; } -int ScriptSigArgsExpected(txnouttype t, const std::vector<std::vector<unsigned char> >& vSolutions) -{ - switch (t) - { - case TX_NONSTANDARD: - case TX_NULL_DATA: - return -1; - case TX_PUBKEY: - return 1; - case TX_PUBKEYHASH: - return 2; - case TX_MULTISIG: - if (vSolutions.size() < 1 || vSolutions[0].size() < 1) - return -1; - return vSolutions[0][0] + 1; - case TX_SCRIPTHASH: - return 1; // doesn't include args needed by the script - } - return -1; -} - bool ExtractDestination(const CScript& scriptPubKey, CTxDestination& addressRet) { vector<valtype> vSolutions; |