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 manual generation #796

Merged
merged 5 commits into from
Nov 9, 2023
Merged

Fix manual generation #796

merged 5 commits into from
Nov 9, 2023

Conversation

matejmode
Copy link
Collaborator

Description

Manual generation needed to be rewritten to generate not from events, but from existing aida-db. This tool is designed only for fixing autogen generation in case the generation got corrupted.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

@matejmode matejmode requested a review from wsodsong November 7, 2023 00:22
@matejmode matejmode requested a review from cabrador November 8, 2023 07:51
@@ -157,7 +157,7 @@ func GenDeletedAccountsAction(cfg *utils.Config, ddb *substate.DestroyedAccountD

for iter.Next() {
tx := iter.Value()
if tx.Block > cfg.Last {
if tx.Block > lastBlock {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

most of the time the last block is excluded, is this what we need here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cfg.Last is not set because the command doesn't intake range from arguments. Therefore lastBlock is supplied explicitly from g.opera.lastBLock

cmd/util-db/db/generate.go Outdated Show resolved Hide resolved
Fix generate arguments error message

Co-authored-by: Petr Hanzl <[email protected]>
@matejmode matejmode merged commit bc5eb8e into develop Nov 9, 2023
@matejmode matejmode deleted the matej/fix-manual-generate branch December 2, 2023 20:22
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