diff options
| author | Pieter Wuille <[email protected]> | 2016-04-25 12:31:45 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-04-25 14:22:30 +0200 |
| commit | f8e6fb1800fbac87e76cdddc074d8f4af585f050 (patch) | |
| tree | 340d4143f5076cc3d39df54ef3d3f7220e8f9363 /src/script/script.h | |
| parent | Merge #7881: Update release process (diff) | |
| download | discoin-f8e6fb1800fbac87e76cdddc074d8f4af585f050.tar.xz discoin-f8e6fb1800fbac87e76cdddc074d8f4af585f050.zip | |
Introduce constant for maximum CScript length
Diffstat (limited to 'src/script/script.h')
| -rw-r--r-- | src/script/script.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/script.h b/src/script/script.h index d2a68a07b..68cde03e3 100644 --- a/src/script/script.h +++ b/src/script/script.h @@ -27,6 +27,9 @@ static const int MAX_OPS_PER_SCRIPT = 201; // Maximum number of public keys per multisig static const int MAX_PUBKEYS_PER_MULTISIG = 20; +// Maximum script length in bytes +static const int MAX_SCRIPT_SIZE = 10000; + // Threshold for nLockTime: below this value it is interpreted as block number, // otherwise as UNIX timestamp. static const unsigned int LOCKTIME_THRESHOLD = 500000000; // Tue Nov 5 00:53:20 1985 UTC |