Skip to content

Commit

Permalink
fix remove for static DB
Browse files Browse the repository at this point in the history
  • Loading branch information
BeniaminDrasovean authored and iulianpascalau committed Jul 25, 2022
1 parent a44acca commit 3e18f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trie/trieStorageManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ func (tsm *trieStorageManager) Remove(hash []byte) error {
tsm.checkpointHashesHolder.Remove(hash)
storer, ok := tsm.mainStorer.(snapshotPruningStorer)
if !ok {
return fmt.Errorf("%w, storer type is %s", ErrWrongTypeAssertion, fmt.Sprintf("%T", tsm.mainStorer))
return tsm.mainStorer.Remove(hash)
}

return storer.RemoveFromCurrentEpoch(hash)
Expand Down

0 comments on commit 3e18f87

Please sign in to comment.