From 95f4ecf06e733a5f616f8a5caec3d89af04509b3 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 18 Dec 2018 05:12:26 -1100 Subject: [PATCH 1/2] Serial mergetoaddress --- src/cc/dapps/zmigrate.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/cc/dapps/zmigrate.c b/src/cc/dapps/zmigrate.c index 2e3051902..f1fb4b0a6 100644 --- a/src/cc/dapps/zmigrate.c +++ b/src/cc/dapps/zmigrate.c @@ -984,8 +984,16 @@ again: { z_exportkey(privkey,coinstr,"",zcaddr); printf("zcaddr.(%s) -> z_exportkey.(%s)\n",zcaddr,privkey); - while ( z_mergetoaddress(opidstr,coinstr,"",zcaddr) > 0 ) - ; + while ( 1 ) + { + if ( have_pending_opid(coinstr,0) != 0 ) + { + sleep(10); + continue; + } + if ( z_mergetoaddress(opidstr,coinstr,"",zcaddr) <= 0 ) + break; + } } printf("start processing zmigrate\n"); lastopid = (uint32_t)time(NULL); From 5488101f95053c338a837a325bc11ab48e73bd89 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 18 Dec 2018 05:22:38 -1100 Subject: [PATCH 2/2] Rename shutoff process --- src/init.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/init.cpp b/src/init.cpp index 1fcd87be7..be98f8fb0 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -76,6 +76,7 @@ using namespace std; extern void ThreadSendAlert(); extern int32_t KOMODO_LOADINGBLOCKS; extern bool VERUS_MINTBLOCKS; +extern char ASSETCHAINS_SYMBOL[]; ZCJoinSplit* pzcashParams = NULL; @@ -195,7 +196,10 @@ void Shutdown() /// for example if the data directory was found to be locked. /// Be sure that anything that writes files or flushes caches only does this if the respective /// module was initialized. - RenameThread("verus-shutoff"); + static char shutoffstr[128]; + sprintf(shutoffstr,"%s-shutoff",ASSETCHAINS_SYMBOL); + //RenameThread("verus-shutoff"); + RenameThread(shutoffstr); mempool.AddTransactionsUpdated(1); StopHTTPRPC();