I am going through Bitcoin's block propagation method at https://developer.bitcoin.org/devguide/p2p_network.html
Are you aware of any pseudocode available on how blocks are propagated during the initial syncing and when new blocks are generated? It would be nice to understand all the checks that happen in P2P layer.