mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
fix unexported return type
This commit is contained in:
parent
68c0ec0815
commit
77b74a0a1f
2 changed files with 3 additions and 3 deletions
|
|
@ -64,9 +64,9 @@ func newStateBloomWithSize(size uint64) (*stateBloom, error) {
|
||||||
return &stateBloom{bloom: bloom}, nil
|
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.
|
// 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)
|
bloom, _, err := bloomfilter.ReadFile(filename)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
||||||
|
|
@ -372,7 +372,7 @@ func RecoverPruning(datadir string, db ethdb.Database) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err // The relevant snapshot(s) might not exist
|
return err // The relevant snapshot(s) might not exist
|
||||||
}
|
}
|
||||||
stateBloom, err := NewStateBloomFromDisk(stateBloomPath)
|
stateBloom, err := newStateBloomFromDisk(stateBloomPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue