diff --git a/iguana/dpow/dpow_network.c b/iguana/dpow/dpow_network.c index 791764486..5f9ff1e63 100755 --- a/iguana/dpow/dpow_network.c +++ b/iguana/dpow/dpow_network.c @@ -171,7 +171,7 @@ int32_t signed_nn_recv(void **freeptrp,struct supernet_info *myinfo,uint8_t nota struct dex_nanomsghdr { uint32_t crc32,size,datalen,timestamp; - char handler[8]; + char handler[64]; uint8_t version0,version1,packet[]; } PACKED; @@ -2363,7 +2363,7 @@ uint16_t komodo_port(char *symbol,uint64_t supply,uint32_t *magicp) } #define MAX_CURRENCIES 32 -extern char CURRENCIES[][8]; +extern char CURRENCIES[][65]; void komodo_assetcoins(int32_t fullnode,uint64_t mask) { diff --git a/iguana/dpow/dpow_prices.c b/iguana/dpow/dpow_prices.c index 1f1024c41..92ceea179 100755 --- a/iguana/dpow/dpow_prices.c +++ b/iguana/dpow/dpow_prices.c @@ -270,7 +270,7 @@ void pax_rank(uint64_t *ranked,uint32_t *pvals) #define YAHOO_METALS "XAU", "XAG", "XPT", "XPD" static char *Yahoo_metals[] = { YAHOO_METALS }; -char CURRENCIES[][8] = { "USD", "EUR", "JPY", "GBP", "AUD", "CAD", "CHF", "NZD", // major currencies +char CURRENCIES[][65] = { "USD", "EUR", "JPY", "GBP", "AUD", "CAD", "CHF", "NZD", // major currencies "CNY", "RUB", "MXN", "BRL", "INR", "HKD", "TRY", "ZAR", "PLN", "NOK", "SEK", "DKK", "CZK", "HUF", "ILS", "KRW", "MYR", "PHP", "RON", "SGD", "THB", "BGN", "IDR", "HRK", // end of currencies "XAU", "XAG", "XPT", "XPD", // metals, gold must be first "BTCD", "BTC", "NXT", "ETC", "ETH", "KMD", "BTS", "MAID", "XCP", "XMR" // cryptos @@ -330,7 +330,7 @@ int32_t PAX_ispair(char *base,char *rel,char *contract) int32_t PAX_basenum(char *_base) { - int32_t i,j; char base[64]; + int32_t i,j; char base[65]; strcpy(base,_base); touppercase(base); if ( 1 ) @@ -936,7 +936,7 @@ int32_t PAX_calcmatrix(double matrix[MAX_CURRENCIES][MAX_CURRENCIES]) int32_t PAX_getmatrix(double *basevals,struct PAX_data *dp,double Hmatrix[32][32],double *RTprices,char *contracts[],int32_t num) { - int32_t i,j,c; char name[16]; double btcusd,kmdbtc; + int32_t i,j,c; char name[65]; double btcusd,kmdbtc; memcpy(Hmatrix,dp->ecbmatrix,sizeof(dp->ecbmatrix)); PAX_calcmatrix(Hmatrix); /*for (i=0; i<32; i++) diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index 6d32c0e7f..59483c7eb 100755 --- a/iguana/iguana_notary.c +++ b/iguana/iguana_notary.c @@ -495,7 +495,7 @@ STRING_ARG(iguana,addnotary,ipaddr) return(clonestr("{\"result\":\"notary node added\"}")); } -char NOTARY_CURRENCIES[][16] = { +char NOTARY_CURRENCIES[][65] = { "REVS", "SUPERNET", "DEX", "PANGEA", "JUMBLR", "BET", "CRYPTO", "HODL", "BOTS", "MGW", "COQUI", "WLC", "KV", "CEAL", "MESH", "MNZ", "CHIPS", "MSHARK", "AXO", "ETOMIC", "BTCH", "VOTE2018", "NINJA", "OOT", "CHAIN" }; diff --git a/iguana/orderbooks.h b/iguana/orderbooks.h index ae7be5277..9b9ea91de 100755 --- a/iguana/orderbooks.h +++ b/iguana/orderbooks.h @@ -3236,7 +3236,7 @@ void prices777_RTupdate(double cryptovols[2][8][2],double RTmetals[4],double *RT int32_t prices777_getmatrix(double *basevals,double *btcusdp,double *btcdbtcp,double Hmatrix[32][32],double *RTprices,char *contracts[],int32_t num,uint32_t timestamp) { - int32_t i,j,c; char name[16]; double btcusd,btcdbtc; + int32_t i,j,c; char name[65]; double btcusd,btcdbtc; memcpy(Hmatrix,BUNDLE.data.ecbmatrix,sizeof(BUNDLE.data.ecbmatrix)); prices777_calcmatrix(Hmatrix); /*for (i=0; i<32; i++) @@ -3411,7 +3411,7 @@ void prices777_sim(uint32_t now,int32_t numiters) void prices777_getlist(char *retbuf) { - int32_t i,j; struct prices777 *prices; char pair[16],*jsonstr; cJSON *json,*array,*item; + int32_t i,j; struct prices777 *prices; char pair[130],*jsonstr; cJSON *json,*array,*item; json = cJSON_CreateObject(); array = cJSON_CreateArray(); for (i=0; i