Browse Source

./iguana notary_nosplit option

pass-iguana-arg
jl777 7 years ago
parent
commit
ec54529a4f
  1. 2
      iguana/dpow/dpow_fsm.c
  2. 1
      iguana/iguana777.h
  3. 4
      iguana/main.c

2
iguana/dpow/dpow_fsm.c

@ -143,7 +143,7 @@ int32_t dpow_checkutxo(struct supernet_info *myinfo,struct dpow_info *dp,struct
{ {
addresses = cJSON_CreateArray(); addresses = cJSON_CreateArray();
jaddistr(addresses,coinaddr); jaddistr(addresses,coinaddr);
if ( (rawtx= iguana_utxoduplicates(myinfo,coin,dp->minerkey33,DPOW_UTXOSIZE,n,&completed,&signedtxid,0,addresses)) != 0 ) if ( myinfo->nosplit == 0 && (rawtx= iguana_utxoduplicates(myinfo,coin,dp->minerkey33,DPOW_UTXOSIZE,n,&completed,&signedtxid,0,addresses)) != 0 )
{ {
if ( (sendtx= dpow_sendrawtransaction(myinfo,coin,rawtx)) != 0 ) if ( (sendtx= dpow_sendrawtransaction(myinfo,coin,rawtx)) != 0 )
{ {

1
iguana/iguana777.h

@ -193,6 +193,7 @@ struct supernet_info
FILE *swapsfp; FILE *swapsfp;
double DEXratio; double DEXratio;
struct smartaddress smartaddrs[64]; int32_t numsmartaddrs,cancelrefresh,runsilent,DEXtrades; struct smartaddress smartaddrs[64]; int32_t numsmartaddrs,cancelrefresh,runsilent,DEXtrades;
int32_t nosplit;
}; };
struct basilisk_swapmessage struct basilisk_swapmessage

4
iguana/main.c

@ -2212,8 +2212,10 @@ void iguana_main(void *arg)
myinfo->rpcport = atoi(&((char *)arg)[6]); myinfo->rpcport = atoi(&((char *)arg)[6]);
printf("OVERRIDE IGUANA port <- %u\n",myinfo->rpcport); printf("OVERRIDE IGUANA port <- %u\n",myinfo->rpcport);
} }
else if ( strcmp((char *)arg,"notary") == 0 ) // must be second to last else if ( strncmp((char *)arg,"notary",strlen("notary")) == 0 ) // must be second to last
{ {
if ( strcmp((char *)arg,"notary_nosplit") == 0 )
myinfo->nosplit = 1;
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

Loading…
Cancel
Save