test
This commit is contained in:
@@ -134,7 +134,7 @@ void komodo_stateupdate(int32_t height,uint8_t notarypubs[][33],uint8_t numnotar
|
|||||||
if ( numpvals*sizeof(uint32_t) <= sizeof(pvals) && fread(pvals,sizeof(uint32_t),numpvals,fp) == numpvals )
|
if ( numpvals*sizeof(uint32_t) <= sizeof(pvals) && fread(pvals,sizeof(uint32_t),numpvals,fp) == numpvals )
|
||||||
{
|
{
|
||||||
komodo_pvals(ht,pvals,numpvals);
|
komodo_pvals(ht,pvals,numpvals);
|
||||||
printf("load pvals ht.%d numpvals.%d\n",ht,numpvals);
|
//printf("load pvals ht.%d numpvals.%d\n",ht,numpvals);
|
||||||
} else printf("error loading pvals[%d]\n",numpvals);
|
} else printf("error loading pvals[%d]\n",numpvals);
|
||||||
}
|
}
|
||||||
//#endif
|
//#endif
|
||||||
|
|||||||
@@ -42,14 +42,17 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3
|
|||||||
printf(" checkpubkey check %.8f v %.8f dest.(%s)\n",dstr(checktoshis),dstr(value),destaddr);
|
printf(" checkpubkey check %.8f v %.8f dest.(%s)\n",dstr(checktoshis),dstr(value),destaddr);
|
||||||
typestr = "deposit";
|
typestr = "deposit";
|
||||||
#ifdef KOMODO_ISSUER
|
#ifdef KOMODO_ISSUER
|
||||||
printf("START MINER!\n");
|
if ( strncmp(KOMODO_SYMBOL,base,strlen(base)) == 0 )
|
||||||
KOMODO_DEPOSIT = fiatoshis;
|
{
|
||||||
KOMODO_SCRIPTPUBKEY[0] = 0x76;
|
printf("START %s MINER!\n",KOMODO_SYMBOL);
|
||||||
KOMODO_SCRIPTPUBKEY[1] = 0xa9;
|
KOMODO_DEPOSIT = fiatoshis;
|
||||||
KOMODO_SCRIPTPUBKEY[2] = 0x14;
|
KOMODO_SCRIPTPUBKEY[0] = 0x76;
|
||||||
memcpy(&KOMODO_SCRIPTPUBKEY[3],rmd160,0x14);
|
KOMODO_SCRIPTPUBKEY[1] = 0xa9;
|
||||||
KOMODO_SCRIPTPUBKEY[23] = 0x88;
|
KOMODO_SCRIPTPUBKEY[2] = 0x14;
|
||||||
KOMODO_SCRIPTPUBKEY[24] = 0xac;
|
memcpy(&KOMODO_SCRIPTPUBKEY[3],rmd160,0x14);
|
||||||
|
KOMODO_SCRIPTPUBKEY[23] = 0x88;
|
||||||
|
KOMODO_SCRIPTPUBKEY[24] = 0xac;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user