Introduce constant for maximum CScript length

This commit is contained in:
Pieter Wuille
2016-04-25 12:31:45 +02:00
committed by Simon
parent 1218603f73
commit 4c6ea562bd
2 changed files with 4 additions and 1 deletions

View File

@@ -19,6 +19,9 @@
static const unsigned int MAX_SCRIPT_ELEMENT_SIZE = 520; // bytes
// 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