Browse Source

test

etomic
jl777 8 years ago
parent
commit
9ea8f391f8
  1. 8
      iguana/dpow/dpow_fsm.c
  2. 2
      iguana/main.c
  3. 2
      iguana/tests/dexsend
  4. 2
      iguana/tests/dexsend_7776

8
iguana/dpow/dpow_fsm.c

@ -93,10 +93,10 @@ int32_t dpow_datahandler(struct supernet_info *myinfo,struct dpow_info *dp,struc
{ {
if ( bp->state < 1000 ) if ( bp->state < 1000 )
{ {
bp->desttxid = txid; //bp->desttxid = txid;
bp->state = 1000; //bp->state = 1000;
dp->destupdated = 0; //dp->destupdated = 0;
dpow_signedtxgen(myinfo,dp,bp->srccoin,bp,bp->bestk,bp->bestmask,myind,DPOW_SIGCHANNEL,0,bp->isratify); //dpow_signedtxgen(myinfo,dp,bp->srccoin,bp,bp->bestk,bp->bestmask,myind,DPOW_SIGCHANNEL,0,bp->isratify);
//dpow_sigscheck(myinfo,dp,bp,DPOW_SIGCHANNEL,myind,0); //dpow_sigscheck(myinfo,dp,bp,DPOW_SIGCHANNEL,myind,0);
} }
} }

2
iguana/main.c

@ -1593,6 +1593,7 @@ void iguana_main(void *arg)
libgfshare_init(myinfo,myinfo->logs,myinfo->exps); libgfshare_init(myinfo,myinfo->logs,myinfo->exps);
myinfo->rpcport = IGUANA_RPCPORT; myinfo->rpcport = IGUANA_RPCPORT;
myinfo->dpowsock = myinfo->dexsock = myinfo->pubsock = myinfo->subsock = myinfo->reqsock = myinfo->repsock = -1; myinfo->dpowsock = myinfo->dexsock = myinfo->pubsock = myinfo->subsock = myinfo->reqsock = myinfo->repsock = -1;
dex_init(myinfo);
if ( arg != 0 ) if ( arg != 0 )
{ {
if ( strcmp((char *)arg,"OStests") == 0 ) if ( strcmp((char *)arg,"OStests") == 0 )
@ -1601,7 +1602,6 @@ void iguana_main(void *arg)
{ {
myinfo->rpcport = IGUANA_NOTARYPORT; myinfo->rpcport = IGUANA_NOTARYPORT;
myinfo->IAMNOTARY = 1; myinfo->IAMNOTARY = 1;
dex_init(myinfo);
} }
} }
#ifdef IGUANA_OSTESTS #ifdef IGUANA_OSTESTS

2
iguana/tests/dexsend

@ -1,2 +1,2 @@
#!/bin/bash #!/bin/bash
curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"dex\",\"method\":\"send\",\"hex\":\"deadbeef\"}" curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"send\",\"hex\":\"deadbeef\"}"

2
iguana/tests/dexsend_7776

@ -0,0 +1,2 @@
#!/bin/bash
curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"dex\",\"method\":\"send\",\"hex\":\"deadbeef\"}"
Loading…
Cancel
Save