diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-10-23 11:22:00 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-10-23 11:50:10 +0200 |
| commit | 923c5e93a90a6eddde3ab8589fc393da95bbc489 (patch) | |
| tree | 1138bc84e9c0c8fa16cf9f9e067c276c0daee4cf /src/script/script.h | |
| parent | Merge pull request #6790 (diff) | |
| parent | script: Remove magic numbers (diff) | |
| download | discoin-923c5e93a90a6eddde3ab8589fc393da95bbc489.tar.xz discoin-923c5e93a90a6eddde3ab8589fc393da95bbc489.zip | |
Merge pull request #6818
b48da5c script: Remove magic numbers (David Hill)
Diffstat (limited to 'src/script/script.h')
| -rw-r--r-- | src/script/script.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/script/script.h b/src/script/script.h index cdc9a71bb..a38d33a18 100644 --- a/src/script/script.h +++ b/src/script/script.h @@ -17,7 +17,14 @@ #include <string> #include <vector> -static const unsigned int MAX_SCRIPT_ELEMENT_SIZE = 520; // bytes +// Maximum number of bytes pushable to the stack +static const unsigned int MAX_SCRIPT_ELEMENT_SIZE = 520; + +// Maximum number of non-push operations per script +static const int MAX_OPS_PER_SCRIPT = 201; + +// Maximum number of public keys per multisig +static const int MAX_PUBKEYS_PER_MULTISIG = 20; // Threshold for nLockTime: below this value it is interpreted as block number, // otherwise as UNIX timestamp. |