test
This commit is contained in:
@@ -436,9 +436,10 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block)
|
||||
{
|
||||
printf("sp->rewinding.%d connect.%d\n",sp->rewinding,pindex->nHeight);
|
||||
komodo_event_rewind(sp,symbol,pindex->nHeight);
|
||||
sp->rewinding = 0;
|
||||
// komodo_stateupdate();
|
||||
}
|
||||
}
|
||||
} else printf("komodo_connectblock cant get komodo_state %s\n",ASSETCHAINS_SYMBOL);
|
||||
numnotaries = komodo_notaries(pubkeys,pindex->nHeight);
|
||||
calc_rmd160_sha256(rmd160,pubkeys[0],33);
|
||||
if ( pindex->nHeight > hwmheight )
|
||||
|
||||
@@ -378,7 +378,10 @@ void komodo_disconnect(CBlockIndex *pindex,CBlock& block)
|
||||
char symbol[16],dest[16]; struct komodo_state *sp;
|
||||
komodo_init(pindex->nHeight);
|
||||
if ( (sp= komodo_stateptr(symbol,dest)) != 0 )
|
||||
{
|
||||
sp->rewinding = pindex->nHeight;
|
||||
printf("-%d",pindex->nHeight);
|
||||
} else printf("komodo_disconnect: ht.%d cant get komodo_state.(%s)\n",pindex->nHeight,ASSETCHAINS_SYMBOL);
|
||||
}
|
||||
|
||||
int32_t komodo_is_notarytx(const CTransaction& tx)
|
||||
|
||||
@@ -159,9 +159,9 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
|
||||
// Check proof of work matches claimed amount
|
||||
if ( UintToArith256(hash) > bnTarget )
|
||||
{
|
||||
for (i=0; i<33; i++)
|
||||
printf("%02x",pubkey33[i]);
|
||||
printf(" special.%d notaryid.%d ht.%d mod.%d error\n",special,notaryid,height,(height % 35));
|
||||
//for (i=0; i<33; i++)
|
||||
// printf("%02x",pubkey33[i]);
|
||||
//printf(" special.%d notaryid.%d ht.%d mod.%d error\n",special,notaryid,height,(height % 35));
|
||||
return error("CheckProofOfWork(): hash doesn't match nBits");
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user