diff --git a/beacon-chain/db/filesystem/iteration.go b/beacon-chain/db/filesystem/iteration.go index 6822992d543..bd2e8d2f1b1 100644 --- a/beacon-chain/db/filesystem/iteration.go +++ b/beacon-chain/db/filesystem/iteration.go @@ -3,7 +3,6 @@ package filesystem import ( "fmt" "io" - "path" "path/filepath" "strconv" "strings" @@ -193,7 +192,7 @@ func rootFromPath(p string) ([32]byte, error) { } func idxFromPath(p string) (uint64, error) { - p = path.Base(p) + p = filepath.Base(p) if !isSszFile(p) { return 0, errors.Wrap(errNotBlobSSZ, "does not have .ssz extension") diff --git a/changelog/kasey_windows-layout-fix.md b/changelog/kasey_windows-layout-fix.md new file mode 100644 index 00000000000..8a13b53ce0f --- /dev/null +++ b/changelog/kasey_windows-layout-fix.md @@ -0,0 +1,2 @@ +### Fixed +- Fixed bug that breaks new blob storage layout code on Windows, caused by accidental use of platform-dependent path parsing package.