void komodo_block2pubkey33(uint8_t *pubkey33,CBlock& block)
{
int32_t n;
- memset(pubkey33,0xff,33);
+ if ( KOMODO_LOADINGBLOCKS == 0 )
+ memset(pubkey33,0xff,33);
+ else memset(pubkey33,0,33);
if ( block.vtx[0].vout.size() > 0 )
{
#ifdef KOMODO_ZCASH
pindex->notaryid = -1;
if ( pindex->pubkey33[0] != 2 && pindex->pubkey33[0] != 3 && pindex->pubkey33[0] != 0xff )
{
- //if ( KOMODO_LOADINGBLOCKS == 0 )
+ if ( KOMODO_LOADINGBLOCKS == 0 )
memset(pindex->pubkey33,0xff,33);
- //else memset(pindex->pubkey33,0,33);
+ else memset(pindex->pubkey33,0,33);
if ( komodo_blockload(block,pindex) == 0 )
{
komodo_block2pubkey33(pindex->pubkey33,block);
}
if ( height > 34000 && ASSETCHAINS_SYMBOL[0] == 0 ) // 0 -> non-special notary
{
+ if ( KOMODO_LOADINGBLOCKS == 0 )
+ return(true);
if ( (pindex= komodo_chainactive(height)) != 0 )
{
komodo_pindex_init(pindex,height);
for (i=0; i<66; i++)
printf("%d ",mids[i]);
printf(" minerids from ht.%d pindex.%p\n",height,pindex);
- if ( KOMODO_LOADINGBLOCKS == 0 )
- return false;
+ return false;
}
return true;
}