From dbe25a3ee02254d7d326c21c9910b2b3a5ae1c3f Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 13 Dec 2018 00:49:30 -1100 Subject: [PATCH 1/3] Set KMD to reversion 4 --- iguana/exchanges/LP_coins.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_coins.c b/iguana/exchanges/LP_coins.c index dac5db200..43100fcc3 100644 --- a/iguana/exchanges/LP_coins.c +++ b/iguana/exchanges/LP_coins.c @@ -457,7 +457,7 @@ int32_t LP_isdisabled(char *base,char *rel) struct iguana_info *LP_coinfind(char *symbol) { - struct iguana_info *coin,cdata; int32_t isinactive,isPoS,longestchain = 1; uint16_t port,busport; uint64_t txfee; double estimatedrate; uint8_t pubtype,p2shtype,wiftype; char *name,*assetname; + struct iguana_info *coin,cdata; int32_t txversion=0,isinactive,isPoS,longestchain = 1; uint16_t port,busport; uint64_t txfee; double estimatedrate; uint8_t pubtype,p2shtype,wiftype; char *name,*assetname; if ( symbol == 0 || symbol[0] == 0 ) return(0); if ( (coin= LP_coinsearch(symbol)) != 0 ) @@ -483,9 +483,12 @@ struct iguana_info *LP_coinfind(char *symbol) name = "bitcoin"; } else if ( strcmp(symbol,"KMD") == 0 ) + { name = "komodo"; + txversion = 4; + } else return(0); - port = LP_coininit(&cdata,symbol,name,assetname,isPoS,port,pubtype,p2shtype,wiftype,txfee,estimatedrate,longestchain,0,0,busport,0,0,0); + port = LP_coininit(&cdata,symbol,name,assetname,isPoS,port,pubtype,p2shtype,wiftype,txfee,estimatedrate,longestchain,0,0,busport,0,0,txversion); if ( port == 0 ) isinactive = 1; else isinactive = 0; From 1f0e61fef950e785304cb005c34e4551314bc9bd Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 13 Dec 2018 00:53:50 -1100 Subject: [PATCH 2/3] Set asset chain txversion to 4, other than OOT and ZILLA --- iguana/exchanges/LP_coins.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iguana/exchanges/LP_coins.c b/iguana/exchanges/LP_coins.c index 43100fcc3..7115d8680 100644 --- a/iguana/exchanges/LP_coins.c +++ b/iguana/exchanges/LP_coins.c @@ -540,6 +540,8 @@ struct iguana_info *LP_coincreate(cJSON *item) { coin = LP_coinadd(&cdata); coin->inactive = (uint32_t)time(NULL); + if ( coin->isassetchain != 0 && strcmp(symbol,"OOT") != 0 && strcmp(symbol,"ZILLA") != 0 ) + coin->txversion = 4; } else coin = LP_coinadd(&cdata); } else if ( symbol != 0 && jobj(item,"rpcport") == 0 ) printf("SKIP %s, missing rpcport field in coins array\n",symbol); From 9ce0234ad49b78fcbf613504f77421024d06367b Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 14 Dec 2018 15:54:02 -1100 Subject: [PATCH 3/3] Notary port -> 7775 --- iguana/elected | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iguana/elected b/iguana/elected index d22e0277c..e95e19fc5 100644 --- a/iguana/elected +++ b/iguana/elected @@ -1,5 +1,5 @@ { -"port": 17775, +"port": 7775, "BTCminsigs": 13, "minsigs": 13, "seeds": [