diff options
| author | Wladimir J. van der Laan <[email protected]> | 2018-05-23 19:31:38 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2018-05-23 19:51:28 +0200 |
| commit | 7f4db9a7c3549a36e45d70fc3c159367aa1e99a4 (patch) | |
| tree | 8e2a134eebed9e2c9e8bd5824fd0dbbd3afaaa07 /src/httpserver.cpp | |
| parent | Merge #13011: Cache witness hash in CTransaction (diff) | |
| parent | net: Serve blocks directly from disk when possible (diff) | |
| download | discoin-7f4db9a7c3549a36e45d70fc3c159367aa1e99a4.tar.xz discoin-7f4db9a7c3549a36e45d70fc3c159367aa1e99a4.zip | |
Merge #13151: net: Serve blocks directly from disk when possible
0bf431870e45d8e20c4671e51a782ebf97b75fac net: Serve blocks directly from disk when possible (Wladimir J. van der Laan)
Pull request description:
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.
Tree-SHA512: 9a9500b4c1354eaae1a6f1c6ef2416c1c1985029852589266f3a70e808f6c7482c135e9ab251a527566935378ab7c32dba4ed43ba5451e802d8e72b77d1ba472
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions