chain: fix unknown versionbits log.

This commit is contained in:
Christopher Jeffrey 2017-07-23 07:39:50 -07:00
parent 3a0c9b60e2
commit 5dd18d5fa6
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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);