File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -387,7 +387,12 @@ bool BlockManager::LoadBlockIndex(const std::optional<uint256>& snapshot_blockha
387
387
}
388
388
389
389
if (snapshot_blockhash) {
390
- const AssumeutxoData au_data = *Assert (GetParams ().AssumeutxoForBlockhash (*snapshot_blockhash));
390
+ const std::optional<AssumeutxoData> maybe_au_data = GetParams ().AssumeutxoForBlockhash (*snapshot_blockhash);
391
+ if (!maybe_au_data) {
392
+ m_opts.notifications .fatalError (strprintf (" Assumeutxo data not found for the given blockhash '%s'." , snapshot_blockhash->ToString ()));
393
+ return false ;
394
+ }
395
+ const AssumeutxoData& au_data = *Assert (maybe_au_data);
391
396
m_snapshot_height = au_data.height ;
392
397
CBlockIndex* base{LookupBlockIndex (*snapshot_blockhash)};
393
398
You can’t perform that action at this time.
0 commit comments