From 7f14f452fc8585bd2e3cc5d81607077cfecc9010 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 08:01:10 +0300 Subject: [PATCH 01/31] Test --- src/komodo_gateway.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 7521c05eb..ce5f17ff3 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -745,6 +745,7 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above } while ( KOMODO_PASSPORT_INITDONE == 0 ) komodo_passport_iteration(); + else komodo_passport_iteration(); // grandfathering preexisting if ( height < 777 ) return(0); From 1f86f71cf60699dd86ff4b202f09d3989900cd14 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 08:07:46 +0300 Subject: [PATCH 02/31] Test --- src/komodo_gateway.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index ce5f17ff3..9fd210f68 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -745,7 +745,7 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above } while ( KOMODO_PASSPORT_INITDONE == 0 ) komodo_passport_iteration(); - else komodo_passport_iteration(); + komodo_passport_iteration(); // grandfathering preexisting if ( height < 777 ) return(0); From d4be1760d31e84a43f3c339e80e885e9dd2853ce Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 08:11:13 +0300 Subject: [PATCH 03/31] Test --- src/assetchains.old | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/assetchains.old b/src/assetchains.old index ce56f8b86..13cb7f29b 100755 --- a/src/assetchains.old +++ b/src/assetchains.old @@ -4,23 +4,23 @@ delay=10 source pubkey.txt echo $pubkey -./komodod -pubkey=$pubkey -ac_name=REVS -ac_supply=1300000 -addnode=78.47.196.146 $1 -gen & -./komodod -pubkey=$pubkey -ac_name=SUPERNET -ac_supply=816061 -addnode=78.47.196.146 $1 -gen & -./komodod -pubkey=$pubkey -ac_name=DEX -ac_supply=999999 -addnode=78.47.196.146 $1 -gen & -./komodod -pubkey=$pubkey -ac_name=PANGEA -ac_supply=999999 -addnode=78.47.196.146 $1 -gen & -./komodod -pubkey=$pubkey -ac_name=JUMBLR -ac_supply=999999 -addnode=78.47.196.146 $1 -gen & -./komodod -pubkey=$pubkey -ac_name=BET -ac_supply=999999 -addnode=78.47.196.146 $1 -gen & -./komodod -pubkey=$pubkey -ac_name=CRYPTO -ac_supply=999999 -addnode=78.47.196.146 $1 -gen & -./komodod -pubkey=$pubkey -ac_name=HODL -ac_supply=9999999 -addnode=78.47.196.146 $1 -gen & -./komodod -pubkey=$pubkey -ac_name=SHARK -ac_supply=1401 -addnode=78.47.196.146 $1 -gen & -./komodod -pubkey=$pubkey -ac_name=BOTS -ac_supply=999999 -addnode=78.47.196.146 $1 -gen & -./komodod -pubkey=$pubkey -ac_name=MGW -ac_supply=999999 -addnode=78.47.196.146 $1 -gen & -#./komodod -pubkey=$pubkey -ac_name=MVP -ac_supply=1000000 -addnode=78.47.196.146 $1 -gen & -./komodod -pubkey=$pubkey -ac_name=COQUI -ac_supply=72000000 -addnode=78.47.196.146 $1 -gen & -./komodod -pubkey=$pubkey -ac_name=WLC -ac_supply=210000000 -addnode=148.251.190.89 $1 -gen & -./komodod -pubkey=$pubkey -ac_name=KV -ac_supply=1000000 -addnode=78.47.196.146 $1 -gen & -./komodod -pubkey=$pubkey -ac_name=CEAL -ac_supply=366666666 -addnode=78.47.196.146 $1 -gen & -./komodod -pubkey=$pubkey -ac_name=MESH -ac_supply=1000007 -addnode=78.47.196.146 $1 -gen & +./komodod -pubkey=$pubkey -ac_name=REVS -ac_supply=1300000 -addnode=78.47.196.146 $1 & +./komodod -pubkey=$pubkey -ac_name=SUPERNET -ac_supply=816061 -addnode=78.47.196.146 $1 & +./komodod -pubkey=$pubkey -ac_name=DEX -ac_supply=999999 -addnode=78.47.196.146 $1 & +./komodod -pubkey=$pubkey -ac_name=PANGEA -ac_supply=999999 -addnode=78.47.196.146 $1 & +./komodod -pubkey=$pubkey -ac_name=JUMBLR -ac_supply=999999 -addnode=78.47.196.146 $1 & +./komodod -pubkey=$pubkey -ac_name=BET -ac_supply=999999 -addnode=78.47.196.146 $1 & +./komodod -pubkey=$pubkey -ac_name=CRYPTO -ac_supply=999999 -addnode=78.47.196.146 $1 & +./komodod -pubkey=$pubkey -ac_name=HODL -ac_supply=9999999 -addnode=78.47.196.146 $1 & +./komodod -pubkey=$pubkey -ac_name=SHARK -ac_supply=1401 -addnode=78.47.196.146 $1 & +./komodod -pubkey=$pubkey -ac_name=BOTS -ac_supply=999999 -addnode=78.47.196.146 $1 & +./komodod -pubkey=$pubkey -ac_name=MGW -ac_supply=999999 -addnode=78.47.196.146 $1 & +#./komodod -pubkey=$pubkey -ac_name=MVP -ac_supply=1000000 -addnode=78.47.196.146 $1 & +./komodod -pubkey=$pubkey -ac_name=COQUI -ac_supply=72000000 -addnode=78.47.196.146 $1 & +./komodod -pubkey=$pubkey -ac_name=WLC -ac_supply=210000000 -addnode=148.251.190.89 $1 & +./komodod -pubkey=$pubkey -ac_name=KV -ac_supply=1000000 -addnode=78.47.196.146 $1 & +./komodod -pubkey=$pubkey -ac_name=CEAL -ac_supply=366666666 -addnode=78.47.196.146 $1 & +./komodod -pubkey=$pubkey -ac_name=MESH -ac_supply=1000007 -addnode=78.47.196.146 $1 & sleep $delay ./komodod -pubkey=$pubkey -ac_name=USD -addnode=78.47.196.146 $1 & From 2240654d8ff55ade5c50621ca4c48dabc0b7c0e9 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 09:18:08 +0300 Subject: [PATCH 04/31] Test --- src/komodo_gateway.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 9fd210f68..9fde4efa0 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -1121,7 +1121,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 if ( kmdheight > 238000 && (kmdheight > 214700 || strcmp(base,ASSETCHAINS_SYMBOL) == 0) ) //seed != 0 && printf("pax %s deposit %.8f rejected kmdheight.%d %.8f KMD check %.8f seed.%llu\n",base,dstr(fiatoshis),kmdheight,dstr(value),dstr(checktoshis),(long long)seed); } - } //else printf("paxdeposit height.%d vs kmdheight.%d\n",height,kmdheight); + } else printf("[%s] %s paxdeposit height.%d vs kmdheight.%d\n",ASSETCHAINS_SYMBOL,base,height,kmdheight); } } else if ( opretbuf[0] == 'I' ) From 4b9e9edaf377632197c6e2cbf226aaf6c1d231e7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 09:19:55 +0300 Subject: [PATCH 05/31] Test --- src/komodo_gateway.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 9fde4efa0..f527b9993 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -1054,7 +1054,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 if ( strcmp(base,ASSETCHAINS_SYMBOL) == 0 && (kmdheight > 195000 || kmdheight <= height) ) { didstats = 0; - if ( 0 && kmdheight > 214700 && strcmp(base,ASSETCHAINS_SYMBOL) == 0 ) + if ( 1 && kmdheight > 214700 && strcmp(base,ASSETCHAINS_SYMBOL) == 0 ) { printf("(%s) (%s) kmdheight.%d vs height.%d check %.8f vs %.8f tokomodo.%d %d seed.%llx\n",ASSETCHAINS_SYMBOL,base,kmdheight,height,dstr(checktoshis),dstr(value),komodo_is_issuer(),strncmp(ASSETCHAINS_SYMBOL,base,strlen(base)) == 0,(long long)seed); for (i=0; i<32; i++) From f8ac0965ba1ce50f13ba5e300fb9b5535f3f41ee Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 09:25:31 +0300 Subject: [PATCH 06/31] Test --- src/komodo_gateway.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index f527b9993..4d4756778 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -1121,7 +1121,8 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 if ( kmdheight > 238000 && (kmdheight > 214700 || strcmp(base,ASSETCHAINS_SYMBOL) == 0) ) //seed != 0 && printf("pax %s deposit %.8f rejected kmdheight.%d %.8f KMD check %.8f seed.%llu\n",base,dstr(fiatoshis),kmdheight,dstr(value),dstr(checktoshis),(long long)seed); } - } else printf("[%s] %s paxdeposit height.%d vs kmdheight.%d\n",ASSETCHAINS_SYMBOL,base,height,kmdheight); + } else if ( strcmp(base,ASSETCHAINS_SYMBOL) == 0 ) + printf("[%s] %s paxdeposit height.%d vs kmdheight.%d\n",ASSETCHAINS_SYMBOL,base,height,kmdheight); } } else if ( opretbuf[0] == 'I' ) From db6396cc3db64a527056de2d77af316e52d86aa7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 09:36:45 +0300 Subject: [PATCH 07/31] Test --- src/komodo_gateway.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 4d4756778..c08f04f7e 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -1054,7 +1054,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 if ( strcmp(base,ASSETCHAINS_SYMBOL) == 0 && (kmdheight > 195000 || kmdheight <= height) ) { didstats = 0; - if ( 1 && kmdheight > 214700 && strcmp(base,ASSETCHAINS_SYMBOL) == 0 ) + if ( 0 && kmdheight > 214700 && strcmp(base,ASSETCHAINS_SYMBOL) == 0 ) { printf("(%s) (%s) kmdheight.%d vs height.%d check %.8f vs %.8f tokomodo.%d %d seed.%llx\n",ASSETCHAINS_SYMBOL,base,kmdheight,height,dstr(checktoshis),dstr(value),komodo_is_issuer(),strncmp(ASSETCHAINS_SYMBOL,base,strlen(base)) == 0,(long long)seed); for (i=0; i<32; i++) From 83af1e7019605b00533be652fd889cf1d6c75af5 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 09:52:28 +0300 Subject: [PATCH 08/31] Test --- src/komodo_gateway.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index c08f04f7e..3dcc9a281 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -918,9 +918,9 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above { if ( (sp= komodo_stateptrget(CURRENCIES[baseids[i-1]])) != 0 && (sp->RTmask & (1LL << baseids[i-1])) == 0 ) { - /*printf("skip checkdeposit.%s not RT %llx\n",CURRENCIES[baseids[i-1]],(long long)sp->RTmask); + printf("[%s] skip checkdeposit.%s not RT %llx\n",ASSETCHAINS_SYMBOL,CURRENCIES[baseids[i-1]],(long long)sp->RTmask); matched++; - continue;*/ + continue; } if ( (pax= komodo_paxfinds(txids[i-1],vouts[i-1])) != 0 ) // finds... make sure right one { From 80ec167605b0d7c6e84ef77966bcfc4f0f314371 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 09:53:09 +0300 Subject: [PATCH 09/31] Test --- src/policy/fees.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/policy/fees.cpp b/src/policy/fees.cpp index 7762a4dc6..d4965a9b5 100644 --- a/src/policy/fees.cpp +++ b/src/policy/fees.cpp @@ -55,13 +55,14 @@ void TxConfirmStats::ClearCurrent(unsigned int nBlockHeight) unsigned int TxConfirmStats::FindBucketIndex(double val) { + extern char ASSETCHAINS_SYMBOL[]; auto it = bucketMap.lower_bound(val); //assert(it != bucketMap.end()); if ( it != bucketMap.end() ) { static uint32_t counter; if ( counter++ < 10 ) - fprintf(stderr,"FindBucketIndex violation: from val %f\n",val); + fprintf(stderr,"%s FindBucketIndex violation: from val %f\n",ASSETCHAINS_SYMBOL,val); } return it->second; } From 3767b1016f088b88f83caacae6536b22ac0b2afd Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 10:02:47 +0300 Subject: [PATCH 10/31] Test --- src/komodo_gateway.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 3dcc9a281..9cc963356 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -916,11 +916,15 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above { for (i=1; iRTmask & (1LL << baseids[i-1])) == 0 ) + if ( (sp= komodo_stateptrget(CURRENCIES[baseids[i-1]])) != 0 ) { - printf("[%s] skip checkdeposit.%s not RT %llx\n",ASSETCHAINS_SYMBOL,CURRENCIES[baseids[i-1]],(long long)sp->RTmask); - matched++; - continue; + while ((sp->RTmask & (1LL << baseids[i-1])) == 0 ) + { + printf("[%s] skip checkdeposit.%s not RT %llx\n",ASSETCHAINS_SYMBOL,CURRENCIES[baseids[i-1]],(long long)sp->RTmask); + sleep(10); + //matched++; + //continue; + } } if ( (pax= komodo_paxfinds(txids[i-1],vouts[i-1])) != 0 ) // finds... make sure right one { From 6bbbb67a5b2b8b3ba846790c30b4fe483660cfb6 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 10:21:25 +0300 Subject: [PATCH 11/31] Test --- src/komodo_gateway.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 9cc963356..529e4fd07 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -916,15 +916,19 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above { for (i=1; iRTmask & (1LL << baseids[i-1])) == 0 ) + int32_t rtflag = 0; + while ( (sp->RTmask & (1LL << baseids[i-1])) == 0 ) { printf("[%s] skip checkdeposit.%s not RT %llx\n",ASSETCHAINS_SYMBOL,CURRENCIES[baseids[i-1]],(long long)sp->RTmask); - sleep(10); + sleep(60); + rtflag = 1; //matched++; //continue; } + if ( rtflag != 0 ) + printf("[%s] %s reached RT\n",ASSETCHAINS_SYMBOL,CURRENCIES[baseids[i-1]]); } if ( (pax= komodo_paxfinds(txids[i-1],vouts[i-1])) != 0 ) // finds... make sure right one { From 03a4c027acc588fb665acdfb33088751ad81dd0a Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 10:26:06 +0300 Subject: [PATCH 12/31] Test --- src/komodo_gateway.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 529e4fd07..86e32d28e 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -921,7 +921,8 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above int32_t rtflag = 0; while ( (sp->RTmask & (1LL << baseids[i-1])) == 0 ) { - printf("[%s] skip checkdeposit.%s not RT %llx\n",ASSETCHAINS_SYMBOL,CURRENCIES[baseids[i-1]],(long long)sp->RTmask); + if ( rtflag == 0 ) + printf("[%s] skip checkdeposit.%s not RT %llx\n",ASSETCHAINS_SYMBOL,CURRENCIES[baseids[i-1]],(long long)sp->RTmask); sleep(60); rtflag = 1; //matched++; From 70ad332d5dc0082932fc5ffba4aebfc1f1b15f30 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 10:37:41 +0300 Subject: [PATCH 13/31] Test --- src/komodo_gateway.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 86e32d28e..5f00c1227 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -1395,6 +1395,7 @@ void komodo_passport_iteration() { if ( baseid == 32 || ASSETCHAINS_SYMBOL[0] == 0 ) { + refsp->RTmask &= ~(1LL << baseid); komodo_statefname(fname,baseid<32?base:(char *)"",(char *)"komodostate"); komodo_nameset(symbol,dest,base); sp = komodo_stateptrget(symbol); @@ -1447,6 +1448,7 @@ void komodo_passport_iteration() } else { + refsp->RTmask &= ~(1LL << baseid); komodo_statefname(fname,baseid<32?base:(char *)"",(char *)"realtime"); if ( (fp= fopen(fname,"wb")) != 0 ) { @@ -1469,7 +1471,7 @@ void komodo_passport_iteration() refsp->RTbufs[0][2] = 0; } komodo_paxtotal(); - refsp->RTmask = RTmask; + refsp->RTmask |= RTmask; if ( expired == 0 && KOMODO_PASSPORT_INITDONE == 0 ) { KOMODO_PASSPORT_INITDONE = 1; From f636ecd229e9d0d78234ab65baddd664bae21779 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 10:39:02 +0300 Subject: [PATCH 14/31] Test --- src/komodo_gateway.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 5f00c1227..4dd8baa4b 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -1434,12 +1434,13 @@ void komodo_passport_iteration() if ( fread(buf,1,sizeof(buf),fp) == sizeof(buf) ) { sp->CURRENT_HEIGHT = buf[0]; - if ( buf[0] != 0 && buf[0] >= buf[1] && buf[2] > time(NULL)-300 ) + if ( buf[0] != 0 && buf[0] >= buf[1] && buf[2] > time(NULL)-60 ) { isrealtime = 1; RTmask |= (1LL << baseid); memcpy(refsp->RTbufs[baseid+1],buf,sizeof(refsp->RTbufs[baseid+1])); - } else if ( KOMODO_PAX != 0 && (time(NULL)-buf[2]) > 1800 && ASSETCHAINS_SYMBOL[0] != 0 ) + } + else if ( KOMODO_PAX != 0 && (time(NULL)-buf[2]) > 60 && ASSETCHAINS_SYMBOL[0] != 0 ) fprintf(stderr,"[%s]: %s not RT %u %u %d\n",ASSETCHAINS_SYMBOL,base,buf[0],buf[1],(int32_t)(time(NULL)-buf[2])); } //else fprintf(stderr,"%s size error RT\n",base); fclose(fp); From a9995f3a4046350fd23ece710c583dc4924f1103 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 10:43:07 +0300 Subject: [PATCH 15/31] Test --- src/komodo_gateway.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 4dd8baa4b..cef546a7e 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -916,7 +916,7 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above { for (i=1; iRTmask & (1LL << baseids[i-1])) == 0 ) From 83b4eb0883b0ae7bce6b6b8c977d989795770e72 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 10:47:00 +0300 Subject: [PATCH 16/31] Test --- src/komodo_gateway.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index cef546a7e..425e3959e 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -916,10 +916,10 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above { for (i=1; iRTmask & (1LL << baseids[i-1])) == 0 ) + while ( (sp->RTmask & (1LL << 32)) == 0 ) { if ( rtflag == 0 ) printf("[%s] skip checkdeposit.%s not RT %llx\n",ASSETCHAINS_SYMBOL,CURRENCIES[baseids[i-1]],(long long)sp->RTmask); From 1bd28a7206800bf3cd7550626a40211099fb8eb4 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 11:38:51 +0300 Subject: [PATCH 17/31] Test --- src/komodo_gateway.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 425e3959e..e7de7a1c4 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -1063,7 +1063,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 if ( strcmp(base,ASSETCHAINS_SYMBOL) == 0 && (kmdheight > 195000 || kmdheight <= height) ) { didstats = 0; - if ( 0 && kmdheight > 214700 && strcmp(base,ASSETCHAINS_SYMBOL) == 0 ) + if ( height == 1461 && strcmp(base,ASSETCHAINS_SYMBOL) == 0 ) { printf("(%s) (%s) kmdheight.%d vs height.%d check %.8f vs %.8f tokomodo.%d %d seed.%llx\n",ASSETCHAINS_SYMBOL,base,kmdheight,height,dstr(checktoshis),dstr(value),komodo_is_issuer(),strncmp(ASSETCHAINS_SYMBOL,base,strlen(base)) == 0,(long long)seed); for (i=0; i<32; i++) From 2616a780d89e6b0e940bd63fcb0efdeaf29f8a9f Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 11:44:14 +0300 Subject: [PATCH 18/31] Test --- src/komodo_gateway.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index e7de7a1c4..147bd6626 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -1063,7 +1063,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 if ( strcmp(base,ASSETCHAINS_SYMBOL) == 0 && (kmdheight > 195000 || kmdheight <= height) ) { didstats = 0; - if ( height == 1461 && strcmp(base,ASSETCHAINS_SYMBOL) == 0 ) + if ( strcmp("AUD",ASSETCHAINS_SYMBOL) && strcmp(base,ASSETCHAINS_SYMBOL) == 0 ) { printf("(%s) (%s) kmdheight.%d vs height.%d check %.8f vs %.8f tokomodo.%d %d seed.%llx\n",ASSETCHAINS_SYMBOL,base,kmdheight,height,dstr(checktoshis),dstr(value),komodo_is_issuer(),strncmp(ASSETCHAINS_SYMBOL,base,strlen(base)) == 0,(long long)seed); for (i=0; i<32; i++) From e3cd3a5b6aaa5ca70f7b8b94e619a3609da12a53 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 11:48:20 +0300 Subject: [PATCH 19/31] Test --- src/komodo_gateway.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 147bd6626..65688fc8e 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -1060,10 +1060,10 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 bitcoin_address(coinaddr,addrtype,rmd160,20); checktoshis = PAX_fiatdest(&seed,tokomodo,destaddr,pubkey33,coinaddr,kmdheight,base,fiatoshis); typestr = "deposit"; - if ( strcmp(base,ASSETCHAINS_SYMBOL) == 0 && (kmdheight > 195000 || kmdheight <= height) ) + if ( strcmp(base,ASSETCHAINS_SYMBOL) == 0 )//&& (kmdheight > 195000 || kmdheight <= height) ) { didstats = 0; - if ( strcmp("AUD",ASSETCHAINS_SYMBOL) && strcmp(base,ASSETCHAINS_SYMBOL) == 0 ) + if ( strcmp("AUD",ASSETCHAINS_SYMBOL) ) { printf("(%s) (%s) kmdheight.%d vs height.%d check %.8f vs %.8f tokomodo.%d %d seed.%llx\n",ASSETCHAINS_SYMBOL,base,kmdheight,height,dstr(checktoshis),dstr(value),komodo_is_issuer(),strncmp(ASSETCHAINS_SYMBOL,base,strlen(base)) == 0,(long long)seed); for (i=0; i<32; i++) From 0cd63cc8461b270345bdf0b8713fd020a690ade2 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 11:55:22 +0300 Subject: [PATCH 20/31] Test --- src/komodo_gateway.h | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 65688fc8e..7397e6e71 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -1060,19 +1060,19 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 bitcoin_address(coinaddr,addrtype,rmd160,20); checktoshis = PAX_fiatdest(&seed,tokomodo,destaddr,pubkey33,coinaddr,kmdheight,base,fiatoshis); typestr = "deposit"; + if ( strcmp("AUD",ASSETCHAINS_SYMBOL) ) + { + printf("(%s) (%s) kmdheight.%d vs height.%d check %.8f vs %.8f tokomodo.%d %d seed.%llx\n",ASSETCHAINS_SYMBOL,base,kmdheight,height,dstr(checktoshis),dstr(value),komodo_is_issuer(),strncmp(ASSETCHAINS_SYMBOL,base,strlen(base)) == 0,(long long)seed); + for (i=0; i<32; i++) + printf("%02x",((uint8_t *)&txid)[i]); + printf(" <- txid.v%u ",vout); + for (i=0; i<33; i++) + printf("%02x",pubkey33[i]); + printf(" checkpubkey check %.8f v %.8f dest.(%s) kmdheight.%d height.%d\n",dstr(checktoshis),dstr(value),destaddr,kmdheight,height); + } if ( strcmp(base,ASSETCHAINS_SYMBOL) == 0 )//&& (kmdheight > 195000 || kmdheight <= height) ) { didstats = 0; - if ( strcmp("AUD",ASSETCHAINS_SYMBOL) ) - { - printf("(%s) (%s) kmdheight.%d vs height.%d check %.8f vs %.8f tokomodo.%d %d seed.%llx\n",ASSETCHAINS_SYMBOL,base,kmdheight,height,dstr(checktoshis),dstr(value),komodo_is_issuer(),strncmp(ASSETCHAINS_SYMBOL,base,strlen(base)) == 0,(long long)seed); - for (i=0; i<32; i++) - printf("%02x",((uint8_t *)&txid)[i]); - printf(" <- txid.v%u ",vout); - for (i=0; i<33; i++) - printf("%02x",pubkey33[i]); - printf(" checkpubkey check %.8f v %.8f dest.(%s) kmdheight.%d height.%d\n",dstr(checktoshis),dstr(value),destaddr,kmdheight,height); - } if ( komodo_paxcmp(base,kmdheight,value,checktoshis,kmdheight < 225000 ? seed : 0) == 0 ) { if ( (pax= komodo_paxfind(txid,vout,'D')) == 0 ) @@ -1130,9 +1130,8 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 if ( kmdheight > 238000 && (kmdheight > 214700 || strcmp(base,ASSETCHAINS_SYMBOL) == 0) ) //seed != 0 && printf("pax %s deposit %.8f rejected kmdheight.%d %.8f KMD check %.8f seed.%llu\n",base,dstr(fiatoshis),kmdheight,dstr(value),dstr(checktoshis),(long long)seed); } - } else if ( strcmp(base,ASSETCHAINS_SYMBOL) == 0 ) - printf("[%s] %s paxdeposit height.%d vs kmdheight.%d\n",ASSETCHAINS_SYMBOL,base,height,kmdheight); - } + } else printf("[%s] %s paxdeposit height.%d vs kmdheight.%d\n",ASSETCHAINS_SYMBOL,base,height,kmdheight); + } else printf("unsupported size.%d for opreturn D\n",opretlen); } else if ( opretbuf[0] == 'I' ) { From 73d738df51670ea664a3cbfab4a00735dd4f7c1e Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 11:58:33 +0300 Subject: [PATCH 21/31] Test --- src/komodo_gateway.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 7397e6e71..2d290f42c 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -1052,7 +1052,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 else if ( opretbuf[0] == 'D' ) { tokomodo = 0; - if ( opretlen == 38 ) // any KMD tx + if ( opretlen >= 38 ) // any KMD tx { iguana_rwnum(0,&opretbuf[34],sizeof(kmdheight),&kmdheight); memset(base,0,sizeof(base)); @@ -1060,6 +1060,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 bitcoin_address(coinaddr,addrtype,rmd160,20); checktoshis = PAX_fiatdest(&seed,tokomodo,destaddr,pubkey33,coinaddr,kmdheight,base,fiatoshis); typestr = "deposit"; + printf("[%s] %s paxdeposit height.%d vs kmdheight.%d\n",ASSETCHAINS_SYMBOL,base,height,kmdheight); if ( strcmp("AUD",ASSETCHAINS_SYMBOL) ) { printf("(%s) (%s) kmdheight.%d vs height.%d check %.8f vs %.8f tokomodo.%d %d seed.%llx\n",ASSETCHAINS_SYMBOL,base,kmdheight,height,dstr(checktoshis),dstr(value),komodo_is_issuer(),strncmp(ASSETCHAINS_SYMBOL,base,strlen(base)) == 0,(long long)seed); @@ -1130,7 +1131,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 if ( kmdheight > 238000 && (kmdheight > 214700 || strcmp(base,ASSETCHAINS_SYMBOL) == 0) ) //seed != 0 && printf("pax %s deposit %.8f rejected kmdheight.%d %.8f KMD check %.8f seed.%llu\n",base,dstr(fiatoshis),kmdheight,dstr(value),dstr(checktoshis),(long long)seed); } - } else printf("[%s] %s paxdeposit height.%d vs kmdheight.%d\n",ASSETCHAINS_SYMBOL,base,height,kmdheight); + } //else printf("[%s] %s paxdeposit height.%d vs kmdheight.%d\n",ASSETCHAINS_SYMBOL,base,height,kmdheight); } else printf("unsupported size.%d for opreturn D\n",opretlen); } else if ( opretbuf[0] == 'I' ) From 8cafa0de98b97f02003022b030440a2fc05bb0bc Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 12:03:25 +0300 Subject: [PATCH 22/31] Test --- src/komodo_gateway.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 2d290f42c..09be934d3 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -1054,6 +1054,13 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 tokomodo = 0; if ( opretlen >= 38 ) // any KMD tx { + if ( opretlen > 38 ) + { + iguana_rwnum(0,&opretbuf[36],sizeof(kmdheight),&kmdheight); + for (i=0; i Date: Mon, 3 Jul 2017 12:04:29 +0300 Subject: [PATCH 23/31] Test --- src/komodo_gateway.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 09be934d3..8567d9d1c 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -1067,9 +1067,9 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 bitcoin_address(coinaddr,addrtype,rmd160,20); checktoshis = PAX_fiatdest(&seed,tokomodo,destaddr,pubkey33,coinaddr,kmdheight,base,fiatoshis); typestr = "deposit"; - printf("[%s] %s paxdeposit height.%d vs kmdheight.%d\n",ASSETCHAINS_SYMBOL,base,height,kmdheight); - if ( strcmp("AUD",ASSETCHAINS_SYMBOL) ) + if ( strcmp("AUD",base) == 0 ) { + printf("[%s] %s paxdeposit height.%d vs kmdheight.%d\n",ASSETCHAINS_SYMBOL,base,height,kmdheight); printf("(%s) (%s) kmdheight.%d vs height.%d check %.8f vs %.8f tokomodo.%d %d seed.%llx\n",ASSETCHAINS_SYMBOL,base,kmdheight,height,dstr(checktoshis),dstr(value),komodo_is_issuer(),strncmp(ASSETCHAINS_SYMBOL,base,strlen(base)) == 0,(long long)seed); for (i=0; i<32; i++) printf("%02x",((uint8_t *)&txid)[i]); From 3fb80f103235e3eff4a72f208396ddebaee27ceb Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 12:13:38 +0300 Subject: [PATCH 24/31] Test --- src/komodo_gateway.h | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 8567d9d1c..ababebeef 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -652,7 +652,7 @@ void komodo_passport_iteration(); int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above block is valid pax pricing { static uint256 array[64]; static int32_t numbanned,indallvouts; - int32_t i,j,k,n,ht,baseid,txn_count,activation,num,opretlen,offset=1,errs=0,matched=0,kmdheights[64],otherheights[64]; uint256 hash,txids[64]; char symbol[16],base[16]; uint16_t vouts[64]; int8_t baseids[64]; uint8_t *script,opcode,rmd160s[64*20]; uint64_t total,available,deposited,issued,withdrawn,approved,redeemed,checktoshis,seed; int64_t values[64],srcvalues[64]; struct pax_transaction *pax; struct komodo_state *sp; + int32_t i,j,k,n,ht,baseid,txn_count,activation,num,opretlen,offset=1,errs=0,matched=0,kmdheights[256],otherheights[256]; uint256 hash,txids[256]; char symbol[16],base[16]; uint16_t vouts[256]; int8_t baseids[256]; uint8_t *script,opcode,rmd160s[256*20]; uint64_t total,available,deposited,issued,withdrawn,approved,redeemed,checktoshis,seed; int64_t values[256],srcvalues[256]; struct pax_transaction *pax; struct komodo_state *sp; activation = 235300; if ( *(int32_t *)&array[0] == 0 ) numbanned = komodo_bannedset(&indallvouts,array,(int32_t)(sizeof(array)/sizeof(*array))); @@ -1052,20 +1052,13 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 else if ( opretbuf[0] == 'D' ) { tokomodo = 0; - if ( opretlen >= 38 ) // any KMD tx + if ( opretlen == 38 ) // any KMD tx { - if ( opretlen > 38 ) - { - iguana_rwnum(0,&opretbuf[36],sizeof(kmdheight),&kmdheight); - for (i=0; i Date: Mon, 3 Jul 2017 12:16:51 +0300 Subject: [PATCH 25/31] Test --- src/komodo_gateway.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index ababebeef..0e5fd81c6 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -1058,7 +1058,9 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 memset(base,0,sizeof(base)); PAX_pubkey(0,&opretbuf[1],&addrtype,rmd160,base,&shortflag,&fiatoshis); bitcoin_address(coinaddr,addrtype,rmd160,20); - checktoshis = PAX_fiatdest(&seed,tokomodo,destaddr,pubkey33,coinaddr,height,base,fiatoshis); + checktoshis = PAX_fiatdest(&seed,tokomodo,destaddr,pubkey33,coinaddr,kmdheight,base,fiatoshis); + if ( komodo_paxcmp(base,kmdheight,value,checktoshis,kmdheight < 225000 ? seed : 0) != 0 ) + checktoshis = PAX_fiatdest(&seed,tokomodo,destaddr,pubkey33,coinaddr,height,base,fiatoshis); typestr = "deposit"; if ( strcmp("AUD",base) == 0 ) { From 1e38ab3f84c662c6ade6ab1e2061029a8fd5d0c8 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 12:19:35 +0300 Subject: [PATCH 26/31] Test --- src/komodo_gateway.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 0e5fd81c6..ea5dbbe20 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -1062,7 +1062,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 if ( komodo_paxcmp(base,kmdheight,value,checktoshis,kmdheight < 225000 ? seed : 0) != 0 ) checktoshis = PAX_fiatdest(&seed,tokomodo,destaddr,pubkey33,coinaddr,height,base,fiatoshis); typestr = "deposit"; - if ( strcmp("AUD",base) == 0 ) + if ( 0 && strcmp("AUD",base) == 0 ) { printf("[%s] %s paxdeposit height.%d vs kmdheight.%d\n",ASSETCHAINS_SYMBOL,base,height,kmdheight); printf("(%s) (%s) kmdheight.%d vs height.%d check %.8f vs %.8f tokomodo.%d %d seed.%llx\n",ASSETCHAINS_SYMBOL,base,kmdheight,height,dstr(checktoshis),dstr(value),komodo_is_issuer(),strncmp(ASSETCHAINS_SYMBOL,base,strlen(base)) == 0,(long long)seed); From 3609f6b31cd726edb0f5e8af61775a3144493608 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 12:20:39 +0300 Subject: [PATCH 27/31] Test --- src/komodo_gateway.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index ea5dbbe20..8a0a4d357 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -1073,7 +1073,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 printf("%02x",pubkey33[i]); printf(" checkpubkey check %.8f v %.8f dest.(%s) kmdheight.%d height.%d\n",dstr(checktoshis),dstr(value),destaddr,kmdheight,height); } - if ( strcmp(base,ASSETCHAINS_SYMBOL) == 0 )//&& (kmdheight > 195000 || kmdheight <= height) ) + if ( strcmp(base,ASSETCHAINS_SYMBOL) == 0 && (kmdheight > 195000 || kmdheight <= height) ) { didstats = 0; if ( komodo_paxcmp(base,kmdheight,value,checktoshis,kmdheight < 225000 ? seed : 0) == 0 ) From 78a175f2cdeaa20b504800a6a85a3bc6a0f3be9a Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 12:23:03 +0300 Subject: [PATCH 28/31] Test --- src/komodo_gateway.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 8a0a4d357..7bf50a29f 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -1134,7 +1134,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 printf("pax %s deposit %.8f rejected kmdheight.%d %.8f KMD check %.8f seed.%llu\n",base,dstr(fiatoshis),kmdheight,dstr(value),dstr(checktoshis),(long long)seed); } } //else printf("[%s] %s paxdeposit height.%d vs kmdheight.%d\n",ASSETCHAINS_SYMBOL,base,height,kmdheight); - } else printf("unsupported size.%d for opreturn D\n",opretlen); + } //else printf("unsupported size.%d for opreturn D\n",opretlen); } else if ( opretbuf[0] == 'I' ) { From f712270b0eafb2f11a4928e91ded58d84ba5a75d Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 12:33:11 +0300 Subject: [PATCH 29/31] Test --- src/komodo_gateway.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 7bf50a29f..3503dec7b 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -270,7 +270,7 @@ int32_t komodo_paxcmp(char *symbol,int32_t kmdheight,uint64_t value,uint64_t che if ( seed == 0 && checkvalue != 0 ) { ratio = ((value << 6) / checkvalue); - if ( ratio >= 62 && ratio <= 66 ) + if ( ratio >= 60 && ratio <= 67 ) return(0); else { From 5e5325f22a592401f7dff5010d2cbf85a23f30e6 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 14:30:00 +0300 Subject: [PATCH 30/31] Test --- src/komodo_gateway.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 3503dec7b..3fc13b808 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -1062,7 +1062,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 if ( komodo_paxcmp(base,kmdheight,value,checktoshis,kmdheight < 225000 ? seed : 0) != 0 ) checktoshis = PAX_fiatdest(&seed,tokomodo,destaddr,pubkey33,coinaddr,height,base,fiatoshis); typestr = "deposit"; - if ( 0 && strcmp("AUD",base) == 0 ) + if ( 1 && strcmp("NOK",base) == 0 ) { printf("[%s] %s paxdeposit height.%d vs kmdheight.%d\n",ASSETCHAINS_SYMBOL,base,height,kmdheight); printf("(%s) (%s) kmdheight.%d vs height.%d check %.8f vs %.8f tokomodo.%d %d seed.%llx\n",ASSETCHAINS_SYMBOL,base,kmdheight,height,dstr(checktoshis),dstr(value),komodo_is_issuer(),strncmp(ASSETCHAINS_SYMBOL,base,strlen(base)) == 0,(long long)seed); From 063b17cc887edada9e99d747f243c8d73e51c07b Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Jul 2017 14:37:37 +0300 Subject: [PATCH 31/31] Test --- src/komodo_gateway.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 3fc13b808..0fa650267 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -1062,7 +1062,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 if ( komodo_paxcmp(base,kmdheight,value,checktoshis,kmdheight < 225000 ? seed : 0) != 0 ) checktoshis = PAX_fiatdest(&seed,tokomodo,destaddr,pubkey33,coinaddr,height,base,fiatoshis); typestr = "deposit"; - if ( 1 && strcmp("NOK",base) == 0 ) + if ( 0 && strcmp("NOK",base) == 0 ) { printf("[%s] %s paxdeposit height.%d vs kmdheight.%d\n",ASSETCHAINS_SYMBOL,base,height,kmdheight); printf("(%s) (%s) kmdheight.%d vs height.%d check %.8f vs %.8f tokomodo.%d %d seed.%llx\n",ASSETCHAINS_SYMBOL,base,kmdheight,height,dstr(checktoshis),dstr(value),komodo_is_issuer(),strncmp(ASSETCHAINS_SYMBOL,base,strlen(base)) == 0,(long long)seed);