diff --git a/crypto777/iguana_utils.c b/crypto777/iguana_utils.c index da95b8179..870dc4bf5 100755 --- a/crypto777/iguana_utils.c +++ b/crypto777/iguana_utils.c @@ -264,7 +264,7 @@ int32_t iguana_numthreads(struct iguana_info *coin,int32_t mask) void iguana_launcher(void *ptr) { struct iguana_thread *t = ptr; struct iguana_info *coin; - coin = t->coin; + coin = (void *)t->coin; t->funcp(t->arg); if ( coin != 0 ) coin->Terminated[t->type % (sizeof(coin->Terminated)/sizeof(*coin->Terminated))]++; @@ -287,7 +287,7 @@ struct iguana_thread *iguana_launch(struct iguana_info *coin,char *name,iguana_f int32_t retval; struct iguana_thread *t; t = mycalloc('Z',1,sizeof(*t)); strcpy(t->name,name); - t->coin = coin; + t->coin = (void *)coin; t->funcp = funcp; t->arg = arg; t->type = (type % (sizeof(coin->Terminated)/sizeof(*coin->Terminated))); diff --git a/iguana/dpow/dpow_network.c b/iguana/dpow/dpow_network.c index 5e81fa672..c6bc516d8 100755 --- a/iguana/dpow/dpow_network.c +++ b/iguana/dpow/dpow_network.c @@ -381,6 +381,7 @@ void komodo_assetcoins() } free_json(json); coin->FULLNODE = -1; + coin->chain->rpcport = port + 1; } printf("(%s %u) ",CURRENCIES[i],port); } diff --git a/iguana/gdb_notary b/iguana/gdb_notary new file mode 100755 index 000000000..cd7de98bf --- /dev/null +++ b/iguana/gdb_notary @@ -0,0 +1,24 @@ +pkill iguana +rm -f ../agents/iguana *.o +git pull +cd secp256k1; ./m_unix; cd .. +cd ../crypto777; ./m_LP; cd ../iguana +gcc -g -fno-aggressive-loop-optimizations -Wno-deprecated -c -O2 -DISNOTARYNODE=1 -DLIQUIDITY_PROVIDER=1 *.c ../basilisk/basilisk.c ../gecko/gecko.c ../datachain/datachain.c +gcc -g -fno-aggressive-loop-optimizations -Wno-deprecated -c -DISNOTARYNODE=1 -DLIQUIDITY_PROVIDER=1 main.c iguana777.c iguana_bundles.c ../basilisk/basilisk.c +gcc -g -o ../agents/iguana *.o ../agents/libcrypto777.a -lnanomsg -lcurl -lssl -lcrypto -lpthread -lz -lm + +gdb -args ../agents/iguana notary + +myip=`curl -s4 checkip.amazonaws.com` + +sleep 4 +curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"SuperNET\",\"method\":\"myipaddr\",\"ipaddr\":\"$myip\"}" +sleep 3 +tests/addnotarys_7776 +./btc_7776 +./kmd_7776 +curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"iguana\",\"method\":\"addnotary\",\"ipaddr\":\"$myip\"}" +./dpow_7776 +sleep 3 +./wp_7776 + diff --git a/includes/iguana_structs.h b/includes/iguana_structs.h index b037439a3..cd6a33a10 100755 --- a/includes/iguana_structs.h +++ b/includes/iguana_structs.h @@ -26,7 +26,7 @@ struct iguana_thread { struct queueitem DL; pthread_t handle; - struct iguana_info *coin; + struct iguana_infof *coin; char name[16]; uint8_t type; iguana_func funcp;