Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
b1db300d7b
  1. 5
      iguana/iguana_ramchain.c
  2. 2
      iguana/swaps/iguana_PAXswap.c

5
iguana/iguana_ramchain.c

@ -1682,6 +1682,7 @@ struct iguana_ramchain *iguana_ramchain_map(struct iguana_info *coin,char *fname
} }
} }
printf("mapped %s scriptspace %d:%d\n",fname,ramchain->H.scriptoffset,ramchain->H.data->scriptspace);
return(ramchain); return(ramchain);
} else printf("iguana_ramchain_map.(%s) cant map file\n",fname); } else printf("iguana_ramchain_map.(%s) cant map file\n",fname);
return(0); return(0);
@ -2075,7 +2076,7 @@ int32_t iguana_ramchain_scriptspace(struct iguana_info *coin,int32_t *sigspacep,
sigspace += sigsize; sigspace += sigsize;
pubkeyspace += pubkeysize; pubkeyspace += pubkeysize;
sigspace += suffixlen; sigspace += suffixlen;
//fprintf(stderr,"(%d %d %d %d).%d ",sigsize,pubkeysize,p2shsize,suffixlen,scriptlen); fprintf(stderr,"(%d %d %d %d).%d ",sigsize,pubkeysize,p2shsize,suffixlen,scriptlen);
} //else fprintf(stderr,"(none)" ); } //else fprintf(stderr,"(none)" );
} }
} }
@ -2085,7 +2086,7 @@ int32_t iguana_ramchain_scriptspace(struct iguana_info *coin,int32_t *sigspacep,
//fprintf(stderr,"scriptspace.%u altspace.%u, ",scriptspace,altspace); //fprintf(stderr,"scriptspace.%u altspace.%u, ",scriptspace,altspace);
} }
*sigspacep = sigspace, *pubkeyspacep = pubkeyspace; *sigspacep = sigspace, *pubkeyspacep = pubkeyspace;
//printf("altspace.%d numvouts.%d numvins.%d scriptspace.%d p2shspace.%d sigspace.%d pubkeyspace.%d\n",altspace,tx->numvouts,tx->numvins,scriptspace,p2shspace,sigspace,pubkeyspace); printf("altspace.%d numvouts.%d numvins.%d scriptspace.%d p2shspace.%d sigspace.%d pubkeyspace.%d\n",altspace,tx->numvouts,tx->numvins,scriptspace,p2shspace,sigspace,pubkeyspace);
return(scriptspace + p2shspace); return(scriptspace + p2shspace);
} }

2
iguana/swaps/iguana_PAXswap.c

@ -48,6 +48,7 @@ char *instantdex_PAXswap(struct supernet_info *myinfo,struct exchange_info *exch
return(retstr); return(retstr);
} }
#ifdef __APPLE__
#include "../../includes/secp256k1.h" #include "../../includes/secp256k1.h"
//#include "../../crypto777/secp256k1/modules/rangeproof/pedersen_impl.h" //#include "../../crypto777/secp256k1/modules/rangeproof/pedersen_impl.h"
//#include "../../crypto777/secp256k1/modules/rangeproof/borromean_impl.h" //#include "../../crypto777/secp256k1/modules/rangeproof/borromean_impl.h"
@ -230,6 +231,7 @@ void test_pedersen(void) {
CHECK(secp256k1_pedersen_verify_tally(ctx, &cptr[1], 1, &cptr[0], 1, -INT64_MAX)); CHECK(secp256k1_pedersen_verify_tally(ctx, &cptr[1], 1, &cptr[0], 1, -INT64_MAX));
printf("g\n"); printf("g\n");
} }
#endif
void ztest() void ztest()
{ {

Loading…
Cancel
Save