delvingbitcoin

Libbitcoin for Core people

Libbitcoin for Core people

Original Postby evoskuil

Posted on: December 1, 2024 14:52 UTC

Libbitcoin's architecture is designed to efficiently handle block serialization, which ensures that the process of composing outgoing blocks does not hinder response times.

This efficiency stems from the fact that both storage and composition operations are executed much faster than network transmission rates and consume minimal CPU resources. To put this into perspective, the procedure for downloading involves deserializing a block from the network, hashing all transactions (with an additional hashing step for segwit transactions), performing merkle hashing (again, with an extra step for segwit transactions), executing block checks, and then serializing the block for storage, including full indexation. Despite the complexity of these operations, when they are conducted concurrently across 64 threads without the use of specialized hardware acceleration (SHANI), the storage system's performance still surpasses the capabilities of a 2.3Gbps network connection. The entire process can be completed in under an hour, effectively demonstrating that deserialization of blocks poses no significant bottleneck to the system.