Browse Source

Consider duplicate response to submitblock as an accepted block

master
ckolivas 9 years ago
parent
commit
7b75f270bc
  1. 5
      src/bitcoin.c

5
src/bitcoin.c

@ -409,6 +409,11 @@ retry:
res_ret = json_string_value(res_val); res_ret = json_string_value(res_val);
if (res_ret && strlen(res_ret)) { if (res_ret && strlen(res_ret)) {
LOGWARNING("SUBMIT BLOCK RETURNED: %s", 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; goto out;
} }
} }

Loading…
Cancel
Save