}
if m.status.BestHash != block.PreviousBlockHash {
- log.WithFields(log.Fields{"module": logModule, "blockHeight": block.Height, "previousBlockHash": m.status.BestHash, "rcvBlockPrevHash": block.PreviousBlockHash}).Warning("The previousBlockHash of the received block is not the same as the hash of the previous block")
+ log.WithFields(log.Fields{
+ "module": logModule,
+ "block_height": block.Height,
+ "status_block_hash": m.status.BestHash.String(),
+ "retrive_block_PrevHash": block.PreviousBlockHash.String(),
+ }).Warning("The previousBlockHash of the received block is not the same as the hash of the previous block")
continue
}