diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index ab3b3c78e..a37eed594 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/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 ) { - bp->desttxid = txid; - bp->state = 1000; - dp->destupdated = 0; - dpow_signedtxgen(myinfo,dp,bp->srccoin,bp,bp->bestk,bp->bestmask,myind,DPOW_SIGCHANNEL,0,bp->isratify); + //bp->desttxid = txid; + //bp->state = 1000; + //dp->destupdated = 0; + //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); } } diff --git a/iguana/main.c b/iguana/main.c index cd68ec531..1ab88d59d 100755 --- a/iguana/main.c +++ b/iguana/main.c @@ -1593,6 +1593,7 @@ void iguana_main(void *arg) libgfshare_init(myinfo,myinfo->logs,myinfo->exps); myinfo->rpcport = IGUANA_RPCPORT; myinfo->dpowsock = myinfo->dexsock = myinfo->pubsock = myinfo->subsock = myinfo->reqsock = myinfo->repsock = -1; + dex_init(myinfo); if ( arg != 0 ) { if ( strcmp((char *)arg,"OStests") == 0 ) @@ -1601,7 +1602,6 @@ void iguana_main(void *arg) { myinfo->rpcport = IGUANA_NOTARYPORT; myinfo->IAMNOTARY = 1; - dex_init(myinfo); } } #ifdef IGUANA_OSTESTS diff --git a/iguana/tests/dexsend b/iguana/tests/dexsend index b43998bef..5e8d619ef 100755 --- a/iguana/tests/dexsend +++ b/iguana/tests/dexsend @@ -1,2 +1,2 @@ #!/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\"}" diff --git a/iguana/tests/dexsend_7776 b/iguana/tests/dexsend_7776 new file mode 100755 index 000000000..b43998bef --- /dev/null +++ b/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\"}"