Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Fix invalid table name on fork recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Mar 5, 2022
1 parent 1d331e3 commit 83d5265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async function resolveFork(previousBlock: BlockType): Promise<void> {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const result = await cassandraClient.execute(
`SELECT block_height,block_hash
FROM ${KEYSPACE}.block_height_by_block_hash
FROM ${KEYSPACE}.block_height_to_hash
WHERE block_height > ${blockQueryResult.rows[0].height.toString()}
ALLOW FILTERING`,
[],
Expand Down

0 comments on commit 83d5265

Please sign in to comment.