mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 22:26:42 +00:00
internal/era/eradl: fix the regexp (what else)
This commit is contained in:
parent
d4299382f0
commit
925f5d2c0c
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ func (l *Loader) DownloadAll(destDir string) error {
|
|||
func (l *Loader) DownloadBlockRange(start, end uint64, destDir string) error {
|
||||
startEpoch := int(start / uint64(era.MaxEra1Size))
|
||||
endEpoch := int(end / uint64(era.MaxEra1Size))
|
||||
pat := regexp.MustCompile(regexp.QuoteMeta(l.network) + "-([0-9]+)-[0-9a-f]\\.era1")
|
||||
pat := regexp.MustCompile(regexp.QuoteMeta(l.network) + "-([0-9]+)-[0-9a-f]+\\.era1")
|
||||
for file := range l.csdb.Files() {
|
||||
m := pat.FindStringSubmatch(file)
|
||||
if len(m) == 2 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue