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

Fix invalid table name on fork recovery #34

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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