aboutsummaryrefslogtreecommitdiff
path: root/src/blockencodings.cpp
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2019-01-18 12:56:06 +1000
committerSuhas Daftuar <sdaftuar@gmail.com>2019-05-02 15:14:12 -0400
commit9ab2a0412e96e87956fe61257387683635213035 (patch)
treebfae8be517c80d86ecad10a0fb9b3199c81c13ea /src/blockencodings.cpp
parent6e55b292b0ea944897b6dc2f766446fd209af484 (diff)
CorruptionPossible -> BLOCK_MUTATED
Co-authored-by: Anthony Towns <aj@erisian.com.au>
Diffstat (limited to 'src/blockencodings.cpp')
-rw-r--r--src/blockencodings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockencodings.cpp b/src/blockencodings.cpp
index 10f51931f0..f0fcf675eb 100644
--- a/src/blockencodings.cpp
+++ b/src/blockencodings.cpp
@@ -203,7 +203,7 @@ ReadStatus PartiallyDownloadedBlock::FillBlock(CBlock& block, const std::vector<
// but that is expensive, and CheckBlock caches a block's
// "checked-status" (in the CBlock?). CBlock should be able to
// check its own merkle root and cache that check.
- if (state.CorruptionPossible())
+ if (state.GetReason() == ValidationInvalidReason::BLOCK_MUTATED)
return READ_STATUS_FAILED; // Possible Short ID collision
return READ_STATUS_CHECKBLOCK_FAILED;
}