debugDumpHeaderDiff() logs the differences between the candidate and the constructed
(candidate, compare *lib.BlockHeader)
| 711 | |
| 712 | // debugDumpHeaderDiff() logs the differences between the candidate and the constructed |
| 713 | func (c *Controller) debugDumpHeaderDiff(candidate, compare *lib.BlockHeader) { |
| 714 | cand, _ := lib.MarshalJSONIndentString(candidate) |
| 715 | comp, _ := lib.MarshalJSONIndentString(compare) |
| 716 | exported, _ := c.FSM.ExportState() |
| 717 | state, _ := lib.MarshalJSONIndentString(exported) |
| 718 | c.log.Errorf("Candidate:\n:%s", cand) |
| 719 | c.log.Errorf("Compare:\n:%s", comp) |
| 720 | c.log.Errorf("State:\n:%s", state) |
| 721 | } |
no test coverage detected