Skip to content

Commit b761d53

Browse files
committed
dbft: prettify log message
It's not very pleasent to see raw bytes in the node's logs: ``` INFO [02-26|19:16:40.678] Update cached dBFT last block information number=1,793,108 "old hash"=7d0829..f8ca0f "new hash"=5da8c1..3bdec7 "seal hash"="[184 45 12 139 8 214 84 81 81 126 9 91 243 43 172 223 212 218 151 234 169 173 84 135 136 39 49 174 255 94 150 36]" ``` Signed-off-by: Anna Shaleva <[email protected]>
1 parent 41f80be commit b761d53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

consensus/dbft/dbft.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2100,7 +2100,7 @@ func (c *DBFT) waitForNewSealingProposal(desiredHeight uint64, updateContext boo
21002100
"number", c.lastIndex,
21012101
"old hash", c.lastBlockHash,
21022102
"new hash", b.ParentHash(),
2103-
"seal hash", c.lastBlockSealHash)
2103+
"seal hash", hex.EncodeToString(c.lastBlockSealHash))
21042104
c.lastBlockHash = b.ParentHash()
21052105
c.lastBlockExtra = parent.Extra
21062106
}

0 commit comments

Comments
 (0)