Fix broken export file usage. (#680)

This commit is contained in:
Igor Mandrigin 2020-06-20 23:07:39 +03:00 committed by GitHub
parent 5812a649ce
commit 69a20de5cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))
}