diff --git a/src/bitcoin.c b/src/bitcoin.c index d7d26d42..e16a9f1c 100644 --- a/src/bitcoin.c +++ b/src/bitcoin.c @@ -409,6 +409,11 @@ retry: res_ret = json_string_value(res_val); if (res_ret && strlen(res_ret)) { LOGWARNING("SUBMIT BLOCK RETURNED: %s", res_ret); + /* Consider duplicate response as an accepted block */ + if (safecmp(res_ret, "duplicate")) + goto out; + } else { + LOGWARNING("SUBMIT BLOCK GOT NO RESPONSE!"); goto out; } }