Skip to content

Commit

Permalink
Move LOCKTIME_THRESHOLD to src/script/script.h
Browse files Browse the repository at this point in the history
Will now be needed by CHECKLOCKTIMEVERIFY code.
  • Loading branch information
petertodd committed May 9, 2015
1 parent 99088d6 commit 48e9c57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/consensus/consensus.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,5 @@ static const unsigned int MAX_BLOCK_SIZE = 1000000;
static const unsigned int MAX_BLOCK_SIGOPS = MAX_BLOCK_SIZE/50;
/** Coinbase transaction outputs can only be spent after this number of new blocks (network rule) */
static const int COINBASE_MATURITY = 100;
/** 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

#endif // BITCOIN_CONSENSUS_CONSENSUS_H
4 changes: 4 additions & 0 deletions src/script/script.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 48e9c57

Please sign in to comment.