v3.13.2-segwit-test

This commit is contained in:
Jay D Dee
2020-05-18 18:17:27 -04:00
parent 9653bca1e2
commit 0e69756634
6 changed files with 149 additions and 18 deletions

13
util.c
View File

@@ -747,6 +747,19 @@ err_out:
return cfg;
}
// Segwit BEGIN
void memrev(unsigned char *p, size_t len)
{
unsigned char c, *q;
for (q = p + len - 1; p < q; p++, q--) {
c = *p;
*p = *q;
*q = c;
}
}
// Segwit END
void cbin2hex(char *out, const char *in, size_t len)
{
if (out) {