Test
This commit is contained in:
@@ -114,6 +114,7 @@ int32_t komodo_baseid(char *origbase);
|
|||||||
int32_t komodo_is_issuer();
|
int32_t komodo_is_issuer();
|
||||||
int32_t komodo_gateway_deposits(CMutableTransaction *txNew,char *symbol,int32_t tokomodo);
|
int32_t komodo_gateway_deposits(CMutableTransaction *txNew,char *symbol,int32_t tokomodo);
|
||||||
int32_t komodo_isrealtime(int32_t *kmdheightp);
|
int32_t komodo_isrealtime(int32_t *kmdheightp);
|
||||||
|
int32_t komodo_validate_interest(const CTransaction &tx,int32_t txheight,uint32_t nTime);
|
||||||
|
|
||||||
CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
|
CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
|
||||||
{
|
{
|
||||||
@@ -429,8 +430,8 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
|
|||||||
pblock->nSolution.clear();
|
pblock->nSolution.clear();
|
||||||
pblocktemplate->vTxSigOps[0] = GetLegacySigOpCount(pblock->vtx[0]);
|
pblocktemplate->vTxSigOps[0] = GetLegacySigOpCount(pblock->vtx[0]);
|
||||||
|
|
||||||
CValidationState tmpstate;
|
CValidationState state;
|
||||||
if ( !TestBlockValidity(tmpstate, *pblock, pindexPrev, false, false))
|
if ( !TestBlockValidity(state, *pblock, pindexPrev, false, false))
|
||||||
{
|
{
|
||||||
static uint32_t counter;
|
static uint32_t counter;
|
||||||
if ( counter++ < 100 )
|
if ( counter++ < 100 )
|
||||||
@@ -887,8 +888,8 @@ void static BitcoinMiner(CWallet *pwallet)
|
|||||||
// Changing pblock->nTime can change work required on testnet:
|
// Changing pblock->nTime can change work required on testnet:
|
||||||
hashTarget.SetCompact(pblock->nBits);
|
hashTarget.SetCompact(pblock->nBits);
|
||||||
}
|
}
|
||||||
CValidationState state;
|
CValidationState tmpstate;
|
||||||
if ( !TestBlockValidity(state, *pblock, pindexPrev, false, false))
|
if ( !TestBlockValidity(tmpstate, *pblock, pindexPrev, false, false))
|
||||||
{
|
{
|
||||||
fprintf(stderr,"formerly valid mining block became invalid, likely due to tx expiration\n");
|
fprintf(stderr,"formerly valid mining block became invalid, likely due to tx expiration\n");
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user