ironfish icon indicating copy to clipboard operation
ironfish copied to clipboard

Feature: Enrich debug log with block tracing events

Open kid-alan opened this issue 1 year ago • 1 comments

Description

@danield9tqh As we work to debug the orphan issue, our goal is to create a chronological log of key blockchain events with accurate timestamps. This will help us identify and fix the bottleneck precisely instead of resorting to guesswork.

Here is a list of the events:

  • Node discovers a new block (new height);
  • Node begins generating a new block template;
  • Node completes generating new block template; - Pool receives block template; - Pool broadcasts block template as miner's work; - Pool receives block PoW solution;
  • Node receives block PoW solution;
  • Node broadcasts block solution to other nodes; (Back to one: "Node discovers a new block")

Italicized Pool events are on our end, while the remaining events are those for which we want to insert debug log entries in the node's codebase. This comprehensive chronology will help us pinpoint the issue or confirm that there isn't a problem.

kid-alan avatar May 09 '23 18:05 kid-alan