BSVNode - merged to dev - Chunk encoded response to getbloc…

Twetch ·

BSVNode - merged to dev - Chunk encoded response to getblock request.

This feature implements streaming a block to the client over the RPC interface, which means we only have to load the block into RAM bit by bit, as it is sent to the client.

Replies

Twetch ·

Previously, the whole block had to be loaded into RAM, then hex encoded in RAM (which takes twice as much RAM), before it could be sent to the client. With large blocks, this consumes a lot of RAM.