Make ASSETCHAINS_TIMELOCKABOVE signed to be greater than negative numbers
This commit is contained in:
@@ -57,8 +57,8 @@ uint32_t ASSETCHAINS_MAGIC = 2387029918;
|
||||
uint64_t ASSETCHAINS_SUPPLY = 10;
|
||||
uint64_t ASSETCHAINS_COMMISSION;
|
||||
|
||||
#define _ASSETCHAINS_TIMELOCKOFF 0xffffffffffffffffLL
|
||||
uint64_t ASSETCHAINS_TIMELOCKABOVE = _ASSETCHAINS_TIMELOCKOFF;
|
||||
#define _ASSETCHAINS_TIMELOCKOFF 0x7fffffffffffffffLL
|
||||
int64_t ASSETCHAINS_TIMELOCKABOVE = _ASSETCHAINS_TIMELOCKOFF;
|
||||
uint64_t ASSETCHAINS_TIMELOCKFROM = 0;
|
||||
uint64_t ASSETCHAINS_TIMELOCKTO = 0;
|
||||
|
||||
|
||||
@@ -964,7 +964,7 @@ bool ContextualCheckTransaction(const CTransaction& tx, CValidationState &state,
|
||||
}
|
||||
}
|
||||
|
||||
if (tx.IsCoinBase() && tx.vout[0].value >= ASSETCHAINS_TIMELOCKABOVE)
|
||||
if (tx.IsCoinBase() && tx.vout[0].nValue >= ASSETCHAINS_TIMELOCKABOVE)
|
||||
{
|
||||
// if time locks are on, ensure that this coin base is time locked exactly as it should be
|
||||
|
||||
|
||||
Reference in New Issue
Block a user