From 69a20de5cc36471fb542ecb9b138fa5b91f78a38 Mon Sep 17 00:00:00 2001 From: Igor Mandrigin Date: Sat, 20 Jun 2020 23:07:39 +0300 Subject: [PATCH] Fix broken export file usage. (#680) --- cmd/state/stateless/stateless_block_providers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/state/stateless/stateless_block_providers.go b/cmd/state/stateless/stateless_block_providers.go index 9e5d30584..725313233 100644 --- a/cmd/state/stateless/stateless_block_providers.go +++ b/cmd/state/stateless/stateless_block_providers.go @@ -130,7 +130,7 @@ func NewBlockProviderFromExportFile(fn string) (BlockProvider, error) { } func getTempFileName() string { - tmpfile, err := ioutil.TempFile("", "headers.bolt") + tmpfile, err := ioutil.TempFile("", "headers.*_bolt") if err != nil { panic(fmt.Errorf("failed to create a temp file: %w", err)) }