Browse Source
Merge pull request #864 from jl777/jl777
./iguana notary_nosplit option
pass-iguana-arg
jl777
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
5 additions and
2 deletions
-
iguana/dpow/dpow_fsm.c
-
iguana/iguana777.h
-
iguana/main.c
|
|
@ -143,7 +143,7 @@ int32_t dpow_checkutxo(struct supernet_info *myinfo,struct dpow_info *dp,struct |
|
|
|
{ |
|
|
|
addresses = cJSON_CreateArray(); |
|
|
|
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 ) |
|
|
|
{ |
|
|
|
|
|
@ -193,6 +193,7 @@ struct supernet_info |
|
|
|
FILE *swapsfp; |
|
|
|
double DEXratio; |
|
|
|
struct smartaddress smartaddrs[64]; int32_t numsmartaddrs,cancelrefresh,runsilent,DEXtrades; |
|
|
|
int32_t nosplit; |
|
|
|
}; |
|
|
|
|
|
|
|
struct basilisk_swapmessage |
|
|
|
|
|
@ -2212,8 +2212,10 @@ void iguana_main(void *arg) |
|
|
|
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
|
|
|
|
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->IAMNOTARY = 1; |
|
|
|
myinfo->DEXEXPLORER = 0;//1; disable as SPV is used now
|
|
|
|