mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 10:19:26 +02:00
assumeutxo: Deserialize trailing byte instead of Txid
This commit is contained in:
@ -5753,8 +5753,8 @@ bool ChainstateManager::PopulateAndValidateSnapshot(
|
|||||||
|
|
||||||
bool out_of_coins{false};
|
bool out_of_coins{false};
|
||||||
try {
|
try {
|
||||||
Txid txid;
|
std::byte left_over_byte;
|
||||||
coins_file >> txid;
|
coins_file >> left_over_byte;
|
||||||
} catch (const std::ios_base::failure&) {
|
} catch (const std::ios_base::failure&) {
|
||||||
// We expect an exception since we should be out of coins.
|
// We expect an exception since we should be out of coins.
|
||||||
out_of_coins = true;
|
out_of_coins = true;
|
||||||
|
Reference in New Issue
Block a user