jl777 7 years ago
parent
commit
2bd5c4ab52
  1. 16
      iguana/main.c

16
iguana/main.c

@ -2207,18 +2207,24 @@ void iguana_main(void *arg)
iguana_notarystats(totals,1); iguana_notarystats(totals,1);
exit(0); exit(0);
} }
else if ( strcmp((char *)arg,"notary") == 0 ) else if ( strncmp((char *)arg,"-port=",6) == 0 )
{
myinfo->rpcport = atoi(&((char *)arg)[6]);
printf("OVERRIDE IGUANA port <- %u\n",myinfo->rpcport);
}
else if ( strcmp((char *)arg,"notary") == 0 ) // must be second to last
{ {
myinfo->rpcport = IGUANA_NOTARYPORT; myinfo->rpcport = IGUANA_NOTARYPORT;
myinfo->IAMNOTARY = 1; myinfo->IAMNOTARY = 1;
myinfo->DEXEXPLORER = 0;//1; disable as SPV is used now myinfo->DEXEXPLORER = 0;//1; disable as SPV is used now
} }
else if ( strncmp((char *)arg,"-port=",6) == 0 ) else
{ {
myinfo->rpcport = atoi(&((char *)arg)[6]); myinfo->rpcport = IGUANA_NOTARYPORT;
printf("OVERRIDE IGUANA port <- %u\n",myinfo->rpcport); myinfo->IAMNOTARY = 1;
myinfo->DEXEXPLORER = 0;//1; disable as SPV is used now
elected = (char *)arg;
} }
else elected = (char *)arg;
} }
if ( komodo_initjson(elected) < 0 ) if ( komodo_initjson(elected) < 0 )
{ {

Loading…
Cancel
Save