jl777 7 years ago
parent
commit
6f45f44842
  1. 4
      iguana/exchanges/LP_nativeDEX.c

4
iguana/exchanges/LP_nativeDEX.c

@ -767,7 +767,7 @@ void bech32_tests()
printf("\n"); printf("\n");
} }
data_len2 = 0; data_len2 = 0;
rmd160[0] = (0 << 3); rmd160[0] = (1 << 3);
bech32_convert_bits(data2,&data_len2,5,rmd160,21,8,1); bech32_convert_bits(data2,&data_len2,5,rmd160,21,8,1);
for (i=0; i<data_len2; i++) for (i=0; i<data_len2; i++)
printf("%02x",data2[i]); printf("%02x",data2[i]);
@ -780,7 +780,7 @@ void bech32_tests()
} }
if ( my_strncasecmp(rebuild,test,92)) if ( my_strncasecmp(rebuild,test,92))
{ {
printf("bech32_encode produces incorrect result: '%s'\n",test); printf("bech32_encode produces incorrect result: '%s' vs (%s)\n",test,rebuild);
} }
printf("end of bech32 tests\n"); printf("end of bech32 tests\n");
} }

Loading…
Cancel
Save