diff --git a/iguana/dpow/dpow_network.c b/iguana/dpow/dpow_network.c index defa0f43d..be5b16837 100755 --- a/iguana/dpow/dpow_network.c +++ b/iguana/dpow/dpow_network.c @@ -700,7 +700,7 @@ void dpow_bestconsensus(struct dpow_block *bp) for (i=0; i best ) + if ( counts[i] > best && bitweight(masks[i]) >= bp->minsigs ) { best = counts[i]; besti = i; diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index 9f1a6b158..fe831f8ef 100755 --- a/iguana/iguana_notary.c +++ b/iguana/iguana_notary.c @@ -425,29 +425,33 @@ STRING_ARG(iguana,addnotary,ipaddr) return(clonestr("{\"result\":\"notary node added\"}")); } -STRING_ARG(dpow,active,maskhex) -{ - uint8_t data[8],revdata[8]; int32_t i,len; uint64_t mask; cJSON *retjson,*array = cJSON_CreateArray(); - //return(clonestr("{\"error\":\"dpow active is deprecated for now\"}")); - if ( 0 ) +STRING_ARG(dpow,fundnotaries,symbol) +{ + int32_t komodo_notaries(char *symbol,uint8_t pubkeys[64][33],int32_t height); + char CURRENCIES[][16] = { "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", + "REVS", "SUPERNET", "DEX", "PANGEA", "JUMBLR", "BET", "CRYPTO", "HODL", "SHARK", "BOTS", "MGW" }; + uint8_t pubkeys[64][33]; char coinaddr[64],cmd[1024]; int32_t i,j; double val = 0.01; + int32_t n = komodo_notaries("KMD",pubkeys,114000); + for (i=0; iDPOWS[0].lastrecvmask; diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index f9203d8a8..97b7c890e 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -1169,7 +1169,7 @@ int32_t iguana_RTunspentslists(struct supernet_info *myinfo,struct iguana_info * } memset(pubkey,0,sizeof(pubkey)); //remains = required * 1.1 + coin->txfee; - if ( coin->FULLNODE > 0 || coin->VALIDATENODE > 0 || coin->notarychain >= 0 ) + if ( coin->FULLNODE > 0 || coin->VALIDATENODE > 0 || (coin->FULLNODE == 0 && coin->notarychain >= 0) ) { for (i=numunspents=0; i