diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index 2e2aec3ba..fdbdb08e9 100755 --- a/basilisk/basilisk.c +++ b/basilisk/basilisk.c @@ -942,7 +942,7 @@ void basilisks_loop(void *arg) basilisk_p2pQ_process(myinfo,777); if ( myinfo->NOTARY.RELAYID >= 0 ) { - if ( (counter++ % 20) == 0 ) + if ( (counter++ % 60) == 0 ) iguana_dPoWupdate(myinfo); endmilli = startmilli + 500; } diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index 123db9a2b..dc25237f7 100755 --- a/iguana/iguana_notary.c +++ b/iguana/iguana_notary.c @@ -300,7 +300,7 @@ int32_t dpow_message_utxo(bits256 *hashmsgp,bits256 *txidp,int32_t *voutp,cJSON memset(txidp,0,sizeof(*txidp)); if ( (msgobj= jarray(&n,json,"messages")) != 0 ) { - printf("messages.(%s)\n",jprint(msgobj,0)); + //printf("messages.(%s)\n",jprint(msgobj,0)); for (i=0; i>= 1; - if ( datalen < sizeof(data) ) + if ( datalen <= sizeof(data) ) { decode_hex(data,datalen,hexstr); if ( datalen == sizeof(data) ) @@ -320,6 +320,7 @@ int32_t dpow_message_utxo(bits256 *hashmsgp,bits256 *txidp,int32_t *voutp,cJSON } *voutp = data[sizeof(bits256) * 2]; retval = datalen; + printf("hashmsg.(%s) txid.(%s) v%d\n",bits256_str(str,*hashmsgp),bits256_str(str,*txidp),*voutp); } } else printf("datalen.%d >= maxlen.%d\n",datalen,(int32_t)sizeof(data)); }