From eb1cbe592524d57646eaf7a0343971251fb37d1a Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Thu, 28 Jan 2016 15:50:54 -0600 Subject: [PATCH] Check that the result is null for accepted blocks instead of true. GBT returns {"result": null, "error": null, "id": null} if the block is accepted. --- src/bitcoin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitcoin.c b/src/bitcoin.c index e16a9f1c..7f9b5f23 100644 --- a/src/bitcoin.c +++ b/src/bitcoin.c @@ -405,7 +405,7 @@ retry: } goto out; } - if (!json_is_true(res_val)) { + if (!json_is_null(res_val)) { res_ret = json_string_value(res_val); if (res_ret && strlen(res_ret)) { LOGWARNING("SUBMIT BLOCK RETURNED: %s", res_ret);