chain: fix unknown versionbits log.
This commit is contained in:
parent
3a0c9b60e2
commit
5dd18d5fa6
@ -968,7 +968,7 @@ Chain.prototype.setBestChain = async function setBestChain(entry, block, prev, f
|
||||
// Warn of unknown versionbits.
|
||||
if (entry.hasUnknown()) {
|
||||
this.logger.warning(
|
||||
'Unknown version bits in block %d: %d.',
|
||||
'Unknown version bits in block %d: %s.',
|
||||
entry.height, util.hex32(entry.version));
|
||||
}
|
||||
|
||||
@ -1033,8 +1033,8 @@ Chain.prototype.saveAlternate = async function saveAlternate(entry, block, prev,
|
||||
// Warn of unknown versionbits.
|
||||
if (entry.hasUnknown()) {
|
||||
this.logger.warning(
|
||||
'Unknown version bits in block %d: %d.',
|
||||
entry.height, entry.version);
|
||||
'Unknown version bits in block %d: %s.',
|
||||
entry.height, util.hex32(entry.version));
|
||||
}
|
||||
|
||||
await this.db.save(entry, block);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user