aboutsummaryrefslogtreecommitdiff
path: root/src/script/script.cpp
Commit message (Collapse)AuthorAgeFilesLines
* script: Remove magic numbersDavid Hill2015-10-151-1/+1
| | | | | This adds two new constants, MAX_OPS_PER_SCRIPT and MAX_PUBKEYS_PER_MULTISIG.
* Accept any sequence of PUSHDATAs in OP_RETURN outputsPeter Todd2015-10-011-1/+1
| | | | | | | | | | | | Previously only one PUSHDATA was allowed, needlessly limiting applications such as matching OP_RETURN contents with bloom filters that operate on a per-PUSHDATA level. Now any combination that passes IsPushOnly() is allowed, so long as the total size of the scriptPubKey is less than 42 bytes. (unchanged modulo non-minimal PUSHDATA encodings) Also, this fixes the odd bug where previously the PUSHDATA could be replaced by any single opcode, even sigops consuming opcodes such as CHECKMULTISIG. (20 sigops!)
* Add IsPushOnly(const_iterator pc)Peter Todd2015-10-011-2/+6
| | | | | Allows IsPushOnly() to be applied to just part of the script for OP_RETURN outputs.
* Resolve issue 3166.mruddy2015-07-301-33/+0
| | | | | These changes decode valid SIGHASH types on signatures in assembly (asm) representations of scriptSig scripts. This squashed commit incorporates substantial helpful feedback from jtimon, laanwj, and sipa.
* Separate core memory usage computation in core_memusage.hPieter Wuille2015-07-201-5/+0
|
* Implement accurate memory accounting for mempoolPieter Wuille2015-07-101-0/+5
|
* Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
| | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* Add SCRIPT_VERIFY_MINIMALDATA (BIP62 rules 3 and 4)Pieter Wuille2014-10-251-28/+1
| | | | | Also use the new flag as a standard rule, and replace the IsCanonicalPush standardness check with it (as it is more complete).
* Add SCRIPT_VERIFY_SIGPUSHONLY (BIP62 rule 2)Pieter Wuille2014-10-251-1/+1
|
* script: add a slew of includes all around and drop includes from script.hCory Fields2014-10-171-1/+2
| | | | Lots of files ended up with indirect includes from script.h.
* script: move ToString and ValueString out of the headerCory Fields2014-10-171-0/+33
|
* Move CTxDestination from script/script to script/standardPieter Wuille2014-09-161-40/+0
|
* cleanup new script files (no code changes)Philip Kaufmann2014-09-141-2/+2
| | | | | | - add missing header end comments - ensure alphabetical ordering - update copyright year and license
* Move CScript class and dependencies to script/scriptjtimon2014-09-081-0/+295