jl777 8 years ago
parent
commit
339b4e2aad
  1. 2
      iguana/dpow/dpow_fsm.c
  2. 2
      iguana/dpow/dpow_rpc.c
  3. 1
      iguana/dpow/dpow_tx.c

2
iguana/dpow/dpow_fsm.c

@ -285,7 +285,7 @@ void dpow_statemachinestart(void *ptr)
printf("minerkey33-> "); printf("minerkey33-> ");
for (i=0; i<33; i++) for (i=0; i<33; i++)
printf("%02x",dp->minerkey33[i]); printf("%02x",dp->minerkey33[i]);
printf(" statemachinestart this node %s %s is not official notary numnotaries.%d\n",srcaddr,destaddr,bp->numnotaries); printf(" statemachinestart this node %s %s is not official notary numnotaries.%d kmdht.%d bpht.%d\n",srcaddr,destaddr,bp->numnotaries,kmdheight,bp->height);
free(ptr); free(ptr);
dp->ratifying -= bp->isratify; dp->ratifying -= bp->isratify;
return; return;

2
iguana/dpow/dpow_rpc.c

@ -22,7 +22,7 @@ int32_t komodo_notaries(char *symbol,uint8_t pubkeys[64][33],int32_t height)
{ {
if ( coin->FULLNODE < 0 ) if ( coin->FULLNODE < 0 )
{ {
sprintf(params,"[\"%d\"]",height); sprintf(params,"[%d]",height);
if ( (retstr= bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"notaries",params)) != 0 ) if ( (retstr= bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"notaries",params)) != 0 )
{ {
if ( (retjson= cJSON_Parse(retstr)) != 0 ) if ( (retjson= cJSON_Parse(retstr)) != 0 )

1
iguana/dpow/dpow_tx.c

@ -208,6 +208,7 @@ int32_t dpow_voutstandard(struct dpow_block *bp,uint8_t *serialized,int32_t m,in
return(-1); return(-1);
} }
opretlen = dpow_opreturnscript(data,opret,opretlen); opretlen = dpow_opreturnscript(data,opret,opretlen);
// insert 'A' values
if ( opretlen < 0xfd ) if ( opretlen < 0xfd )
serialized[len++] = opretlen; serialized[len++] = opretlen;
else else

Loading…
Cancel
Save