aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Jahr <fjahr@protonmail.com>2024-05-24 10:48:22 +0200
committerFabian Jahr <fjahr@protonmail.com>2024-05-24 12:42:09 +0200
commit1f1f9984555d49f07ae20cb3a8153a177c546beb (patch)
tree970813a5e269cf75a792388d52629040d79c318a
parent359967e310794e0bbdbe2bca38ee440a88bc4f43 (diff)
assumeutxo: Deserialize trailing byte instead of Txid
-rw-r--r--src/validation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index b54b019a3c..728fb5deb8 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -5753,8 +5753,8 @@ bool ChainstateManager::PopulateAndValidateSnapshot(
bool out_of_coins{false};
try {
- Txid txid;
- coins_file >> txid;
+ std::byte left_over_byte;
+ coins_file >> left_over_byte;
} catch (const std::ios_base::failure&) {
// We expect an exception since we should be out of coins.
out_of_coins = true;