diff options
| author | Peter Todd <[email protected]> | 2014-09-29 01:02:59 -0400 |
|---|---|---|
| committer | Peter Todd <[email protected]> | 2015-05-09 04:33:49 -0400 |
| commit | 48e9c57cf06352f890eac4285ae022d8746cf3fd (patch) | |
| tree | 100a64bf4a6b04dbeaae983c320a00c65a07441f /src/script/script.h | |
| parent | Make CScriptNum() take nMaxNumSize as an argument (diff) | |
| download | discoin-48e9c57cf06352f890eac4285ae022d8746cf3fd.tar.xz discoin-48e9c57cf06352f890eac4285ae022d8746cf3fd.zip | |
Move LOCKTIME_THRESHOLD to src/script/script.h
Will now be needed by CHECKLOCKTIMEVERIFY code.
Diffstat (limited to 'src/script/script.h')
| -rw-r--r-- | src/script/script.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/script/script.h b/src/script/script.h index a4b9de304..45a06acc9 100644 --- a/src/script/script.h +++ b/src/script/script.h @@ -18,6 +18,10 @@ static const unsigned int MAX_SCRIPT_ELEMENT_SIZE = 520; // bytes +// 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 + template <typename T> std::vector<unsigned char> ToByteVector(const T& in) { |