some fixed due to recent changes

This commit is contained in:
Pratik Patil 2024-05-28 14:57:20 +05:30
parent 052405b03e
commit 54c8ddb618
No known key found for this signature in database
GPG key ID: AFDCA496554874B3
2 changed files with 3 additions and 1 deletions

View file

@ -438,7 +438,7 @@ func exportPreimages(ctx *cli.Context) error {
stack, _ := makeConfigNode(ctx)
defer stack.Close()
db := utils.MakeChainDatabase(ctx, stack, true)
db := utils.MakeChainDatabase(ctx, stack, true, false)
defer db.Close()
start := time.Now()

View file

@ -287,6 +287,8 @@ func main() {
// prepare manipulates memory cache allowance and setups metric system.
// This function should be called before launching devp2p stack.
func prepare(ctx *cli.Context) {
const light = "light"
// If we're running a known preset, log it for convenience.
switch {
case ctx.IsSet(utils.GoerliFlag.Name):