Bitcoin full node and query server

Aug 6, 2024

View in context in the libbitcoin Slack #general mirror.

evoskuil19:59
So after every block is copied to its new buffer, which requires only a single malloc(size) and copy_n(size) , the fixed per-channel block linear allocator just resets back to its buffer start, as it does now. This allows me to remove the tracking shared_ptr that was retained in each block, for the purpose of holding a mutex to block use of the buffer until the block is deleted. Now the block simply lives as long as it wants and deletes its memory when the shared pointer refcount goes to zero. So much simpler.