Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix log index in web3_indexer_db #69

Merged
merged 1 commit into from
Oct 19, 2022
Merged

Fix log index in web3_indexer_db #69

merged 1 commit into from
Oct 19, 2022

Conversation

Flouse
Copy link
Collaborator

@Flouse Flouse commented Oct 18, 2022

Release notes


Note

Database migration is required to fix the log index data in this version.

Check how many db records need to be fixed via SQL

select count(*) from logs where (block_number, transaction_index) not in (select block_number, min(transaction_index) min_tx_index from logs group by block_number);

(please aware that after record fixed, this SQL will still show the same number, it is expected)

Run migration in Web3 containner to fix database

cd /godwoken-web3
yarn knex migrate:latest

@Flouse Flouse self-assigned this Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants