Tighter locktime encoding + 5 byte support for 2108 issue

This commit is contained in:
Michael Toutonghi
2018-04-15 23:36:32 -07:00
parent bc4157ba6c
commit 992fdc3b9a
2 changed files with 64 additions and 23 deletions

View File

@@ -977,12 +977,11 @@ bool ContextualCheckTransaction(const CTransaction& tx, CValidationState &state,
{
for (i = 0; i < tx.vout.size(); i++)
{
// validate that the outputs are locked by the proper time lock script
//uint64_t i = komodo_block_timelockscript(script, scriptHash160, tx.addr/*need address*/)
// validate that the outputs are locked for the proper time
// uint64_t i = komodo_block_timelockscript(script, scriptHash160, tx.addr, nHeight, ASSETCHAINS_TIMEUNLOCKFROM, ASSETCHAINS_TIMEUNLOCKTO)
}
}
}
return true;
}