Can someone, please, direct me to the source code section(s) relevant for an Unsolicited Block Push as described in the Bitcoin Developer Guide?
I've been going through
main.cpp and searched for the term MSG_BLOCK, serving as a beagle for finding the correct place in the code.
But as I'm reading further, it seems to me as if a freshly mined block is not appended to a inventory message, with MSG_BLOCK, in order to send it as a "package" as response to a request (GetData Response) BUT is sent as a single message of this structure:
To me, up to now, the best canditate for Unsolicited Block Push seems to be main.cpp#L2393 part of
main.cpp but I'm confused since I don't know if there is more of possibly relevant code (like main.cpp#L3830) for Unsolicited Block Push in
So: In a first step, I'm looking for code that is relevant for broadcasting a newly found block. Can someone please help?