As per my understanding of bitcoin codebase, the following events happen after we solve a proof of work.
miner.cpp, once the miner thread solves a new Proof-of-work (PoW),
ProcessBlockFoundbasically notifies others via a signal
ResetRequestCountwhich basically resets the
- (Missing Logic)
- A new
NetMsgType::INVis issued from
ProcessMessagesto all peers.
- These messages are eventually dispatched to all peers via network socket logic
I am missing the main piece of code logic between step2 and step4. Can any expert help me understand what background story is happening after step2?