jl777 8 years ago
parent
commit
e926420fcb
  1. 4
      basilisk/basilisk.c
  2. 7
      iguana/iguana_notary.c

4
basilisk/basilisk.c

@ -931,7 +931,7 @@ void basilisk_iteration(struct supernet_info *myinfo)
void basilisks_loop(void *arg) void basilisks_loop(void *arg)
{ {
//static uint32_t counter; static uint32_t counter;
struct supernet_info *myinfo = arg; int32_t iter; double startmilli,endmilli; struct supernet_info *myinfo = arg; int32_t iter; double startmilli,endmilli;
iter = 0; iter = 0;
while ( 1 ) while ( 1 )
@ -942,7 +942,7 @@ void basilisks_loop(void *arg)
basilisk_p2pQ_process(myinfo,777); basilisk_p2pQ_process(myinfo,777);
if ( myinfo->NOTARY.RELAYID >= 0 ) if ( myinfo->NOTARY.RELAYID >= 0 )
{ {
//if ( (counter++ % 20) == 0 ) if ( (counter++ % 2) == 0 )
iguana_dPoWupdate(myinfo); iguana_dPoWupdate(myinfo);
endmilli = startmilli + 500; endmilli = startmilli + 500;
} }

7
iguana/iguana_notary.c

@ -390,7 +390,7 @@ int32_t dpow_message_most(uint8_t *k_masks,int32_t num,cJSON *json,int32_t lastf
siglen = data[10]; siglen = data[10];
sig = data+11; sig = data+11;
memcpy(&k_masks[num << 7],data,datalen); memcpy(&k_masks[num << 7],data,datalen);
printf("num.%d sender.%d lastk.%d %llx\n",num,senderind,lastk,(long long)mask); //printf("num.%d sender.%d lastk.%d %llx\n",num,senderind,lastk,(long long)mask);
num++; num++;
} }
} else printf("datalen.%d >= maxlen.%d\n",datalen,(int32_t)sizeof(data)); } else printf("datalen.%d >= maxlen.%d\n",datalen,(int32_t)sizeof(data));
@ -409,7 +409,7 @@ int32_t dpow_message_most(uint8_t *k_masks,int32_t num,cJSON *json,int32_t lastf
} }
} }
} }
printf("most.%d n.%d\n",most,n); //printf("most.%d n.%d\n",most,n);
return(num); return(num);
} }
@ -498,7 +498,7 @@ cJSON *dpow_createtx(struct iguana_info *coin,cJSON **vinsp,struct dpow_entry no
txobj = bitcoin_txoutput(txobj,script,sizeof(script),satoshis); txobj = bitcoin_txoutput(txobj,script,sizeof(script),satoshis);
} }
*vinsp = vins; *vinsp = vins;
if ( usesigs != 0 ) if ( 0 && usesigs != 0 )
printf("%s createtx.(%s)\n",coin->symbol,jprint(txobj,0)); printf("%s createtx.(%s)\n",coin->symbol,jprint(txobj,0));
return(txobj); return(txobj);
} }
@ -585,6 +585,7 @@ int32_t dpow_k_masks_match(struct dpow_entry notaries[DPOW_MAXRELAYS],int32_t nu
memcpy(notaries[senderind].sig,data+11,data[10]); memcpy(notaries[senderind].sig,data+11,data[10]);
int32_t j; for (j=0; j<notaries[senderind].siglen; j++) int32_t j; for (j=0; j<notaries[senderind].siglen; j++)
printf("%02x",notaries[senderind].sig[j]); printf("%02x",notaries[senderind].sig[j]);
if ( notaries[senderind].siglen > 0 )
printf(" <- sender.%d siglen.%d\n",i,data[10]); printf(" <- sender.%d siglen.%d\n",i,data[10]);
matches++; matches++;
} }

Loading…
Cancel
Save