Browse Source

Revert to test ETH

patch-3
jl777 7 years ago
parent
commit
2e70164cf1
  1. 2
      iguana/exchanges/etomicswap/etomiccurl.h
  2. 2
      iguana/exchanges/etomicswap/etomiclib.h
  3. 2
      iguana/iguana_payments.c

2
iguana/exchanges/etomicswap/etomiccurl.h

@ -4,7 +4,7 @@
extern "C"{ extern "C"{
#endif #endif
//#define ETOMIC_TESTNET #define ETOMIC_TESTNET
#ifdef ETOMIC_TESTNET #ifdef ETOMIC_TESTNET
#define ETOMIC_URL "https://ropsten.infura.io/y07GHxUyTgeN2mdfOonu" #define ETOMIC_URL "https://ropsten.infura.io/y07GHxUyTgeN2mdfOonu"
#else #else

2
iguana/exchanges/etomicswap/etomiclib.h

@ -7,7 +7,7 @@
extern "C" { extern "C" {
#endif #endif
//#define ETOMIC_TESTNET #define ETOMIC_TESTNET
#ifdef ETOMIC_TESTNET #ifdef ETOMIC_TESTNET
#define ETOMIC_ALICECONTRACT "0xe1D4236C5774D35Dc47dcc2E5E0CcFc463A3289c" #define ETOMIC_ALICECONTRACT "0xe1D4236C5774D35Dc47dcc2E5E0CcFc463A3289c"
#define ETOMIC_BOBCONTRACT "0x9387Fd3a016bB0205e4e131Dde886B9d2BC000A2" #define ETOMIC_BOBCONTRACT "0x9387Fd3a016bB0205e4e131Dde886B9d2BC000A2"

2
iguana/iguana_payments.c

@ -462,6 +462,8 @@ char *iguana_calcrawtx(struct supernet_info *myinfo,struct iguana_info *coin,cJS
printf("no spendscriptstr %d.(%s)\n",i,jprint(array,0)); printf("no spendscriptstr %d.(%s)\n",i,jprint(array,0));
continue; continue;
} }
if ( strlen(spendscriptstr) != 50 || strncmp("76a914",spendscriptstr,6) != 0 || strcmp("88ac",&spendscriptstr[50-4]) != 0 )
continue;
unspents = realloc(unspents,(1 + max) * sizeof(*unspents)); unspents = realloc(unspents,(1 + max) * sizeof(*unspents));
value = jdouble(item,"amount") * SATOSHIDEN; value = jdouble(item,"amount") * SATOSHIDEN;
if ( (0) && jdouble(item,"interest") != 0 ) if ( (0) && jdouble(item,"interest") != 0 )

Loading…
Cancel
Save