Fix bad commit from suggestion

This commit is contained in:
Felipe Knorr Kuhn 2026-04-23 12:04:29 +09:00 committed by GitHub
parent 0a9509520e
commit b84df41c10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -710,7 +710,7 @@ class BlocksRepository {
const indexedTip = blocksByHash[hash];
const tipHeight = indexedTip?.height ?? (await bitcoinApi.$getBlock(hash))?.height;
if (typeof tipHeight !== 'number') {
+ throw new Error(`Cannot validate chain: could not resolve tip block height for ${hash} from index or node`);
throw new Error(`Cannot validate chain: could not resolve tip block height for ${hash} from index or node`);
}
// stop at the last canonical block we're supposed to have indexed already