diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index a1191a544..9c25ff995 100755 --- a/iguana/iguana_notary.c +++ b/iguana/iguana_notary.c @@ -458,7 +458,7 @@ cJSON *dpow_getblock(struct supernet_info *myinfo,struct iguana_info *coin,bits2 char *dpow_decoderawtransaction(struct supernet_info *myinfo,struct iguana_info *coin,char *rawtx) { char *retstr,*paramstr; cJSON *array; - if ( coin->FULLNODE < 0 ) + if ( 0 )//coin->FULLNODE < 0 ) { array = cJSON_CreateArray(); jaddistr(array,rawtx); @@ -467,7 +467,7 @@ char *dpow_decoderawtransaction(struct supernet_info *myinfo,struct iguana_info //printf("%s decoderawtransaction.(%s) <- (%s)\n",coin->symbol,retstr,paramstr); free(paramstr); } - else if ( coin->FULLNODE > 0 || coin->VALIDATENODE > 0 ) + else if ( 1 )//coin->FULLNODE > 0 || coin->VALIDATENODE > 0 ) { retstr = bitcoinrpc_decoderawtransaction(myinfo,coin,0,0,rawtx,1); } @@ -879,7 +879,7 @@ int32_t dpow_signedtxgen(struct supernet_info *myinfo,struct iguana_info *coin,s return(-1); for (j=0; jDPOW.minerkey33[j+1]; - if ( (txobj= dpow_createtx(coin,&vins,bp,bestk,bestmask,0)) != 0 ) + if ( (txobj= dpow_createtx(coin,&vins,bp,bestk,bestmask,1)) != 0 ) { txid = dpow_notarytx(rawtx,&numsigs,coin->chain->isPoS,bp,opret_symbol); if ( bits256_nonz(txid) != 0 && rawtx[0] != 0 ) // send tx to share utxo set diff --git a/iguana/ni b/iguana/ni index b119d21b0..3f52954ed 100755 --- a/iguana/ni +++ b/iguana/ni @@ -1,14 +1,10 @@ myip=`cat myip.txt` -#pkill iguana -#../agents/iguana notary & sleep 4 -#coins/gennotary curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"SuperNET\",\"method\":\"myipaddr\",\"ipaddr\":\"$myip\"}" tests/addnotarys_7776 -#tests/getinfoN_7776 -./wp_7776 -curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"SuperNET\",\"method\":\"activehandle\"}" ./btc_7776 ./kmd_7776 -curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"iguana\",\"method\":\"addnotary\",\"ipaddr\":\"$myip\"}" +#curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"iguana\",\"method\":\"addnotary\",\"ipaddr\":\"$myip\"}" ./dpow_7776 +sleep 3 +./wp_7776