diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index a4b82664e..274f687ed 100755 --- a/basilisk/basilisk.c +++ b/basilisk/basilisk.c @@ -1921,7 +1921,7 @@ INT_ARG(InstantDEX,incoming,requestid) else { jaddstr(retjson,"error","cant do InstantDEX channelget"); - printf("error channelget\n"); + char str[65]; printf("error channelget %s %x\n",bits256_str(str,myinfo->myaddr.persistent),msgid); } return(jprint(retjson,1)); } diff --git a/basilisk/smartaddress.c b/basilisk/smartaddress.c index ffaf96467..725b712a4 100755 --- a/basilisk/smartaddress.c +++ b/basilisk/smartaddress.c @@ -546,11 +546,14 @@ void smartaddress_update(struct supernet_info *myinfo,int32_t selector) smartaddress_coinupdate(myinfo,symbol,kmdcoin->DEXinfo.btcprice,kmdcoin->DEXinfo.avail,kmdcoin->DEXinfo.USD_average); else { - printf("Action.(%s)\n",jprint(coinitem,0)); + printf("Action.%s (%s)\n",typestr,jprint(coinitem,0)); if ( (address= jstr(coinitem,"address")) != 0 ) { - bitcoin_addr2rmd160(&addrtype,rmd160,address); - bitcoin_address(coinaddr,kmdcoin->chain->pubtype,rmd160,20); + if ( strcmp(typestr,"jumblr") == 0 ) + { + bitcoin_addr2rmd160(&addrtype,rmd160,address); + bitcoin_address(coinaddr,kmdcoin->chain->pubtype,rmd160,20); + } else strcpy(coinaddr,address); maxbid = jdouble(coinitem,"maxbid"); minask = jdouble(coinitem,"minask"); extraobj = jobj(coinitem,"extra"); diff --git a/iguana/main.c b/iguana/main.c index 5cf2e4bc1..afbeecd80 100755 --- a/iguana/main.c +++ b/iguana/main.c @@ -756,7 +756,8 @@ void jumblr_loop(void *ptr) if ( (coin= iguana_coinfind("KMD")) != 0 ) { n++; - smartaddress_update(myinfo,n & 1); + if ( (n % 3) == 0 ) + smartaddress_update(myinfo,(n/3) & 1); if ( myinfo->jumblr_passphrase[0] != 0 && coin->FULLNODE < 0 ) { // if BTC has arrived in destination address, invoke DEX -> BTC