-
Notifications
You must be signed in to change notification settings - Fork 20.8k
core/rawdb: integrate eradb backend for RPC #31604
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
base: master
Are you sure you want to change the base?
Conversation
@@ -237,7 +237,7 @@ func initGenesis(ctx *cli.Context) error { | |||
overrides.OverrideVerkle = &v | |||
} | |||
|
|||
chaindb, err := stack.OpenDatabaseWithFreezer("chaindata", 0, 0, ctx.String(utils.AncientFlag.Name), "", false) | |||
chaindb, err := stack.OpenDatabaseWithFreezer("chaindata", 0, 0, ctx.String(utils.AncientFlag.Name), "", false, "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably make this a config struct
Twist the era path resolution a bit:
|
return f.eradb.GetRawReceipts(number) | ||
} | ||
return nil, errUnknownTable | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO (sina and gary)
We should support AncientRange as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created a ticket for it for a future PR
Implements #31279