test
This commit is contained in:
@@ -259,7 +259,7 @@ void komodo_stateupdate(int32_t height,uint8_t notarypubs[][33],uint8_t numnotar
|
||||
|
||||
int32_t komodo_voutupdate(int32_t notaryid,uint8_t *scriptbuf,int32_t scriptlen,int32_t height,uint256 txhash,int32_t i,int32_t j,uint64_t *voutmaskp,int32_t *specialtxp,int32_t *notarizedheightp,uint64_t value)
|
||||
{
|
||||
static uint256 zero; int32_t opretlen,nid,k,len = 0; uint256 kmdtxid,desttxid; uint8_t crypto777[33];
|
||||
static uint256 zero; int32_t opretlen,nid,len = 0; uint256 kmdtxid,desttxid; uint8_t crypto777[33];
|
||||
if ( scriptlen == 35 && scriptbuf[0] == 33 && scriptbuf[34] == 0xac )
|
||||
{
|
||||
decode_hex(crypto777,33,(char *)CRYPTO777_PUBSECPSTR);
|
||||
|
||||
@@ -139,7 +139,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3
|
||||
#ifdef KOMODO_ISSUER
|
||||
if ( strncmp(KOMODO_SOURCE,base,strlen(base)) == 0 && value >= (9999*checktoshis)/10000 && shortflag == ASSETCHAINS_SHORTFLAG )
|
||||
{
|
||||
komodo_gateway_deposit(value,shortflag,symbol,fiatoshis,rmd160,txid,vout);
|
||||
komodo_gateway_deposit(value,shortflag,base,fiatoshis,rmd160,txid,vout);
|
||||
}
|
||||
#else
|
||||
if ( tokomodo != 0 && value <= (10000*checktoshis)/9999 )
|
||||
|
||||
@@ -1145,7 +1145,6 @@ void *mycalloc(uint8_t type,int32_t n,long itemsize)
|
||||
}
|
||||
while ( (item= (struct allocitem *)calloc(1,sizeof(struct allocitem) + allocsize + 16)) == 0 )
|
||||
{
|
||||
char str[65];
|
||||
printf("mycalloc.%c: need to wait for memory.(%d,%ld) to be available\n",type,n,itemsize);
|
||||
sleep(10);
|
||||
}
|
||||
@@ -1273,7 +1272,6 @@ void *queueitem(char *str)
|
||||
allocsize = (uint32_t)(sizeof(struct queueitem) + n);
|
||||
while ( (item= (struct queueitem *)calloc(1,allocsize)) == 0 )
|
||||
{
|
||||
char str[65];
|
||||
printf("queueitem: need to wait for memory.(%d,%ld) to be available\n",n,(long)sizeof(*item));
|
||||
sleep(10);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user