diff options
| author | Wladimir J. van der Laan <[email protected]> | 2018-05-02 14:10:27 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2018-05-15 08:11:56 +0200 |
| commit | 0bf431870e45d8e20c4671e51a782ebf97b75fac (patch) | |
| tree | 44e2e163ef3cffeb6af12a93293a964328b7a9dc /src/httpserver.cpp | |
| parent | Merge #13106: Simplify semantics of ChainStateFlushed callback (diff) | |
| download | discoin-0bf431870e45d8e20c4671e51a782ebf97b75fac.tar.xz discoin-0bf431870e45d8e20c4671e51a782ebf97b75fac.zip | |
net: Serve blocks directly from disk when possible
In `ProcessGetBlockData`, send the block data directly from disk if
type MSG_WITNESS_BLOCK is requested. This is a valid shortcut as the
on-disk format matches the network format.
This is expected to increase performance because a deserialization and
subsequent serialization roundtrip is avoided.
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions