You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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.
The text was updated successfully, but these errors were encountered:
I'm not sure where the "discovers a new block" log would be best placed, but I'd expect most of the time to be consumed starting in this.chain.addBlock, which gets called in syncer.ts's addBlock function, and anything before that in peerNetwork should be a trivial amount of time.
Feel free to experiment with it though! We'd prefer debug logs, and if you're able to use the timestamps in logs for measurement, that'll probably make it easier than passing timestamps through the code (set the logPrefix config value to [%time%], see the docs for the config value: https://ironfish.network/use/get-started/node-configuration)
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:
- Pool receives block template;
- Pool broadcasts block template as miner's work;
- Pool receives block PoW solution;
(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.
The text was updated successfully, but these errors were encountered: