Auto merge of #2874 - arcalinea:tx_block_expiry, r=arcalinea

Transaction expiry height

Implements ZIP 203.

- Only applies after Overwinter blockheight.

Closes #754.
This commit is contained in:
Homu
2018-02-23 18:37:48 -08:00
15 changed files with 296 additions and 12 deletions

View File

@@ -22,6 +22,8 @@ static const unsigned int MAX_BLOCK_SIGOPS = 20000;
static const unsigned int MAX_TX_SIZE = 100000;
/** Coinbase transaction outputs can only be spent after this number of new blocks (network rule) */
static const int COINBASE_MATURITY = 100;
/** The minimum value which is invalid for expiry height, used by CTransaction and CMutableTransaction */
static constexpr uint32_t TX_EXPIRY_HEIGHT_THRESHOLD = 500000000;
/** Flags for LockTime() */
enum {