diff --git a/bitcoin/base58.c b/bitcoin/base58.c index 159ed55da..d605117fd 100644 --- a/bitcoin/base58.c +++ b/bitcoin/base58.c @@ -61,7 +61,7 @@ static bool from_base58(u8 *version, int r = b58check(buf, sizeof(buf), base58, base58_len); *version = buf[0]; memcpy(rmd, buf + 1, sizeof(*rmd)); - return r > 0; + return r >= 0; } bool bitcoin_from_base58(bool *test_net,