Emit a warning on unrecognized block versions

This commit is contained in:
pooler 2015-12-26 18:37:48 +01:00
parent cac0976509
commit 1e0274f77d

View file

@ -400,8 +400,7 @@ static bool gbt_work_decode(const json_t *val, struct work *work)
if (version_reduce) {
version = (version & ~BLOCK_VERSION_MASK) | BLOCK_VERSION_CURRENT;
} else if (!version_force) {
applog(LOG_ERR, "Unrecognized block version: %u", version);
goto out;
applog(LOG_WARNING, "Unrecognized block version: %u", version);
}
}