aboutsummaryrefslogtreecommitdiff
path: root/src/random.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2018-05-02 14:10:27 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2018-05-15 08:11:56 +0200
commit0bf431870e45d8e20c4671e51a782ebf97b75fac (patch)
tree44e2e163ef3cffeb6af12a93293a964328b7a9dc /src/random.cpp
parent598db389c33e5e90783ef1223df2eeab095ed622 (diff)
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/random.cpp')
0 files changed, 0 insertions, 0 deletions