mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-27 03:33:27 -03:00
ProcessGetData(): abort if a block file is missing from disk
This commit is contained in:
parent
2653e00b12
commit
7a0e84dd63
1 changed files with 1 additions and 1 deletions
|
@ -3373,7 +3373,7 @@ void static ProcessGetData(CNode* pfrom)
|
||||||
{
|
{
|
||||||
// Send block from disk
|
// Send block from disk
|
||||||
CBlock block;
|
CBlock block;
|
||||||
ReadBlockFromDisk(block, (*mi).second);
|
assert(ReadBlockFromDisk(block, (*mi).second));
|
||||||
if (inv.type == MSG_BLOCK)
|
if (inv.type == MSG_BLOCK)
|
||||||
pfrom->PushMessage("block", block);
|
pfrom->PushMessage("block", block);
|
||||||
else // MSG_FILTERED_BLOCK)
|
else // MSG_FILTERED_BLOCK)
|
||||||
|
|
Loading…
Add table
Reference in a new issue