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 f6bcd36
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/database/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@ 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
WHERE block_height > ${blockQueryResult.rows[0].height.toString()}
ALLOW FILTERING`,
FROM ${KEYSPACE}.block_height_to_hash
WHERE block_height > ${blockQueryResult.rows[0].height.toString()}`,
[],
{ prepare: true }
);
Expand Down

0 comments on commit f6bcd36

Please sign in to comment.