From 6c815b3f6ad4502ea68686d6070812d50a3049cb Mon Sep 17 00:00:00 2001 From: Igor Mandrigin Date: Wed, 5 Aug 2020 10:21:08 +0200 Subject: [PATCH] fix cmd/integration --- cmd/integration/commands/reset_state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/integration/commands/reset_state.go b/cmd/integration/commands/reset_state.go index 3c455f296..55390de7d 100644 --- a/cmd/integration/commands/reset_state.go +++ b/cmd/integration/commands/reset_state.go @@ -189,7 +189,7 @@ func copyCompact() error { if err := os.MkdirAll(to, 0744); err != nil { return fmt.Errorf("could not create dir: %s, %w", to, err) } - if err := env.SetMapSize(ethdb.LMDBMapSize); err != nil { + if err := env.SetMapSize(int64(ethdb.LMDBMapSize.Bytes())); err != nil { return err }