diff --git a/src/komodo_globals.h b/src/komodo_globals.h index 16d796fb2..858385a37 100644 --- a/src/komodo_globals.h +++ b/src/komodo_globals.h @@ -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; diff --git a/src/main.cpp b/src/main.cpp index 07e357020..f0edc8ef0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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