fix unexported return type

This commit is contained in:
maskpp 2024-06-04 15:48:49 +08:00
parent 68c0ec0815
commit 77b74a0a1f
2 changed files with 3 additions and 3 deletions

View file

@ -64,9 +64,9 @@ func newStateBloomWithSize(size uint64) (*stateBloom, error) {
return &stateBloom{bloom: bloom}, nil
}
// NewStateBloomFromDisk loads the state bloom from the given file.
// newStateBloomFromDisk loads the state bloom from the given file.
// In this case the assumption is held the bloom filter is complete.
func NewStateBloomFromDisk(filename string) (*stateBloom, error) {
func newStateBloomFromDisk(filename string) (*stateBloom, error) {
bloom, _, err := bloomfilter.ReadFile(filename)
if err != nil {
return nil, err

View file

@ -372,7 +372,7 @@ func RecoverPruning(datadir string, db ethdb.Database) error {
if err != nil {
return err // The relevant snapshot(s) might not exist
}
stateBloom, err := NewStateBloomFromDisk(stateBloomPath)
stateBloom, err := newStateBloomFromDisk(stateBloomPath)
if err != nil {
return err
}