From 86538a7b343bd61a4eb77067a8704d8233b74778 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 12 Apr 2017 17:03:28 +0300 Subject: [PATCH] Test --- .gitignore | 2 ++ basilisk/basilisk_swap.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a0ca80108..2f7bbcaa2 100755 --- a/.gitignore +++ b/.gitignore @@ -330,3 +330,5 @@ iguana/DB/SWAPS/3448271011-3628813832 iguana/DB/SWAPS/403615495-1237768524 iguana/DB/SWAPS/3448271011-3628813832 + +iguana/DB/SWAPS/246664144-1570119145 diff --git a/basilisk/basilisk_swap.c b/basilisk/basilisk_swap.c index b7a6399c1..c47c9eeaf 100755 --- a/basilisk/basilisk_swap.c +++ b/basilisk/basilisk_swap.c @@ -172,7 +172,7 @@ bits256 basilisk_revealkey(bits256 privkey,bits256 pubkey) int32_t basilisk_swap_bobredeemscript(int32_t depositflag,int32_t *secretstartp,uint8_t *redeemscript,uint32_t locktime,bits256 pubA0,bits256 pubB0,bits256 pubB1,bits256 privAm,bits256 privBn,uint8_t *secretAm,uint8_t *secretAm256,uint8_t *secretBn,uint8_t *secretBn256) { int32_t i,n=0; bits256 cltvpub,destpub,privkey; uint8_t pubkeyA[33],pubkeyB[33],*secret160,*secret256; - if ( depositflag != 0 ) + if ( depositflag == 0 ) { pubkeyA[0] = 0x02, cltvpub = pubA0; pubkeyB[0] = 0x03, destpub = pubB0;