Browse Source

test

olddPoW
jl777 8 years ago
parent
commit
e8778d664d
  1. 4
      crypto777/iguana_utils.c
  2. 1
      iguana/dpow/dpow_network.c
  3. 24
      iguana/gdb_notary
  4. 2
      includes/iguana_structs.h

4
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)));

1
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);
}

24
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

2
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;

Loading…
Cancel
Save