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

transaction db not the same #110

Open
xuxiaohu opened this issue Mar 16, 2021 · 0 comments
Open

transaction db not the same #110

xuxiaohu opened this issue Mar 16, 2021 · 0 comments

Comments

@xuxiaohu
Copy link

change DropEventNotFinalizedData(blockNum int, finalized bool)
to DropEventNotFinalizedData(txn *dao.GormDB, blockNum int, finalized bool)
and
change query := d.db.Where("block_num = ?", blockNum).Delete(model.ChainEvent{BlockNum: blockNum})
to query := txn.Where("block_num = ?", blockNum).Delete(model.ChainEvent{BlockNum: blockNum})

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

No branches or pull requests

1 participant