UDP is used with bitcoin too, by the. Bitcoin needs to reliably send messages far larger than an IP packet, like transactions and blocks. You then exchange getaddr and addr messages, storing all addresses that you don't know about. This means that any application needing to communicate large messages with UDP must implement packetization, retransmission, reordering, etc- the same indicateur d'autoroute forex things that TCP already implements for. 8192 bytes is the default receive buffer size for Windows operating systems.
Stratum tcp bitcoin gold
Bitcoin tcp ip of money
This is sent only in response to a getdata request. So why might UDP transport be useful to the Bitcoin P2P protocol? Nodes also know which peers have been fastest in sending them blocks in the past and handle them specially. Non-generators can download the headers of blocks instead of entire blocks. Many applications that have 'rolled their own TCP' in userspace have ended up with exploitable bugs in them, so it isn't something that should be done without good cause. When someone does find a block, they send an inv containing it to all of their peers, as above.