Emit a warning on unrecognized block versions
This commit is contained in:
parent
cac0976509
commit
1e0274f77d
1 changed files with 1 additions and 2 deletions
|
@ -400,8 +400,7 @@ static bool gbt_work_decode(const json_t *val, struct work *work)
|
||||||
if (version_reduce) {
|
if (version_reduce) {
|
||||||
version = (version & ~BLOCK_VERSION_MASK) | BLOCK_VERSION_CURRENT;
|
version = (version & ~BLOCK_VERSION_MASK) | BLOCK_VERSION_CURRENT;
|
||||||
} else if (!version_force) {
|
} else if (!version_force) {
|
||||||
applog(LOG_ERR, "Unrecognized block version: %u", version);
|
applog(LOG_WARNING, "Unrecognized block version: %u", version);
|
||||||
goto out;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue