diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 5127ce1bd..120952004 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -144,7 +144,11 @@ int32_t komodo_issued_opreturn(char *base,uint256 *txids,uint16_t *vouts,int64_t memcpy(&rmd160s[n * 20],p.rmd160,20); baseids[n] = komodo_baseid(p.symbol); } - printf(">>>>>>> iskomodo X: (%s) fiat %.8f kmdheight.%d other.%d\n",symbol,dstr(fiatoshis),height,otherheight); + { + char coinaddr[64]; + bitcoin_address(coinaddr,60,p.rmd160,20); + printf(">>>>>>> approved A: (%s) fiat %.8f kmdheight.%d other.%d -> %s %.8f\n",baseids[n]>=0?CURRENCIES[baseids[n]]:"???",dstr(p.fiatoshis),p.height,p.otherheight,coinaddr,dstr(p.komodoshis)); + } } else { diff --git a/src/miner.cpp b/src/miner.cpp index 0bb74a0cc..737af64f5 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -99,7 +99,7 @@ void UpdateTime(CBlockHeader* pblock, const Consensus::Params& consensusParams, } #define ASSETCHAINS_MINHEIGHT 100 -#define ROUNDROBIN_DELAY 77 +#define ROUNDROBIN_DELAY 59 extern int32_t ASSETCHAINS_SEED,IS_KOMODO_NOTARY,USE_EXTERNAL_PUBKEY,KOMODO_CHOSEN_ONE,ASSETCHAIN_INIT,KOMODO_INITDONE,KOMODO_ON_DEMAND,KOMODO_INITDONE; extern char ASSETCHAINS_SYMBOL[16]; extern std::string NOTARY_PUBKEY; @@ -644,7 +644,10 @@ void static BitcoinMiner(CWallet *pwallet) if ( ASSETCHAINS_SYMBOL[0] == 0 && Mining_start != 0 && time(NULL) < Mining_start+ROUNDROBIN_DELAY ) { //printf("Round robin diff sleep %d\n",(int32_t)(Mining_start+ROUNDROBIN_DELAY-time(NULL))); - sleep(Mining_start+ROUNDROBIN_DELAY-time(NULL)); + int32_t nseconds = Mining_start+ROUNDROBIN_DELAY-time(NULL); + if ( nseconds > 0 ) + sleep(nseconds); + MilliSleep((rand() % 2000) + 1); KOMODO_CHOSEN_ONE = 1; } // Found a solution