diff --git a/basilisk/basilisk_swap.c b/basilisk/basilisk_swap.c index 173b82883..df0db931c 100755 --- a/basilisk/basilisk_swap.c +++ b/basilisk/basilisk_swap.c @@ -181,7 +181,7 @@ int32_t basilisk_bobscript(uint8_t *rmd160,uint8_t *redeemscript,int32_t *redeem else if ( memcmp(bufB,secret160,sizeof(bufB)) == 0 ) printf("MATCHES BUFB\n"); else printf("secret160 matches neither\n"); - memcpy(secret160,bufA,20); + memcpy(secret160,bufB,20); } n = bitcoin_secret160verify(redeemscript,n,secret160); }