Browse Source

Test

etomic
jl777 8 years ago
parent
commit
4160744795
  1. 4
      iguana/exchanges/LP_remember.c
  2. 6
      iguana/exchanges/LP_transaction.c

4
iguana/exchanges/LP_remember.c

@ -751,8 +751,8 @@ cJSON *basilisk_remember(int64_t *KMDtotals,int64_t *BTCtotals,uint32_t requesti
// alicespend
for (j=0; j<32; j++)
rev.bytes[j] = privAm.bytes[31 - j];
revcalc_rmd160_sha256(secretAm,rev);//privAm);
vcalc_sha256(0,secretAm256,rev.bytes,sizeof(rev));
//revcalc_rmd160_sha256(secretAm,rev);//privAm);
//vcalc_sha256(0,secretAm256,rev.bytes,sizeof(rev));
redeemlen = basilisk_swap_bobredeemscript(0,&secretstart,redeemscript,plocktime,pubA0,pubB0,pubB1,rev,privBn,secretAm,secretAm256,secretBn,secretBn256);
len = basilisk_swapuserdata(userdata,rev,0,myprivs[0],redeemscript,redeemlen);
{

6
iguana/exchanges/LP_transaction.c

@ -379,9 +379,9 @@ int32_t bitcoin_verifyvins(void *ctx,char *symbol,uint8_t pubtype,uint8_t p2shty
{
script = V->p2shscript;
scriptlen = V->p2shlen;
for (j=0; j<scriptlen; j++)
printf("%02x",script[j]);
printf(" V->p2shlen.%d\n",V->p2shlen);
//for (j=0; j<scriptlen; j++)
// printf("%02x",script[j]);
//printf(" V->p2shlen.%d\n",V->p2shlen);
}
else
{

Loading…
Cancel
Save