CLTV fprintf
This commit is contained in:
@@ -1444,19 +1444,6 @@ uint32_t komodo_assetmagic(char *symbol,uint64_t supply,uint8_t *extraptr,int32_
|
|||||||
return(calc_crc32(crc0,buf,len));
|
return(calc_crc32(crc0,buf,len));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*int32_t komodo_shortflag(char *symbol)
|
|
||||||
{
|
|
||||||
int32_t i,shortflag = 0;
|
|
||||||
if ( symbol[0] == '-' )
|
|
||||||
{
|
|
||||||
shortflag = 1;
|
|
||||||
for (i=0; symbol[i+1]!=0; i++)
|
|
||||||
symbol[i] = symbol[i+1];
|
|
||||||
symbol[i] = 0;
|
|
||||||
}
|
|
||||||
return(shortflag);
|
|
||||||
}*/
|
|
||||||
|
|
||||||
uint16_t komodo_assetport(uint32_t magic,int32_t extralen)
|
uint16_t komodo_assetport(uint32_t magic,int32_t extralen)
|
||||||
{
|
{
|
||||||
if ( magic == 0x8de4eef9 )
|
if ( magic == 0x8de4eef9 )
|
||||||
|
|||||||
@@ -1129,7 +1129,10 @@ bool TransactionSignatureChecker::CheckLockTime(const CScriptNum& nLockTime) con
|
|||||||
// Now that we know we're comparing apples-to-apples, the
|
// Now that we know we're comparing apples-to-apples, the
|
||||||
// comparison is a simple numeric one.
|
// comparison is a simple numeric one.
|
||||||
if (nLockTime > (int64_t)txTo->nLockTime)
|
if (nLockTime > (int64_t)txTo->nLockTime)
|
||||||
|
{
|
||||||
|
fprintf(stderr,"CLTV error: nLockTime %u > %u txTo->nLockTime\n",(uint32_t)nLockTime,(uint32_t)txTo->nLockTime);
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Finally the nLockTime feature can be disabled and thus
|
// Finally the nLockTime feature can be disabled and thus
|
||||||
// CHECKLOCKTIMEVERIFY bypassed if every txin has been
|
// CHECKLOCKTIMEVERIFY bypassed if every txin has been
|
||||||
@@ -1142,7 +1145,10 @@ bool TransactionSignatureChecker::CheckLockTime(const CScriptNum& nLockTime) con
|
|||||||
// inputs, but testing just this input minimizes the data
|
// inputs, but testing just this input minimizes the data
|
||||||
// required to prove correct CHECKLOCKTIMEVERIFY execution.
|
// required to prove correct CHECKLOCKTIMEVERIFY execution.
|
||||||
if (txTo->vin[nIn].IsFinal())
|
if (txTo->vin[nIn].IsFinal())
|
||||||
|
{
|
||||||
|
fprintf(stderr,"CLTV error: nonfinal vin.%d\n",(int32_t)nIn);
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user