Skip to content

Commit

Permalink
parameter name change
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-cha committed Feb 4, 2025
1 parent 578927c commit 0e6034e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions merkle/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ func DeleteFutureWorkingTrees(db types.DB, fromVersion uint64) error {
return nil
}

func DeleteFutureNodes(db types.DB, fromVersion uint64) error {
func DeleteFutureNodes(db types.DB, treeIndex uint64) error {
var deleteKeys [][]byte
err := db.Iterate(dbtypes.AppendSplitter(merkletypes.NodePrefix), merkletypes.PrefixedNodeKeyWithTreeIndex(fromVersion), func(key, _ []byte) (bool, error) {
err := db.Iterate(dbtypes.AppendSplitter(merkletypes.NodePrefix), merkletypes.PrefixedNodeKeyWithTreeIndex(treeIndex), func(key, _ []byte) (bool, error) {
deleteKeys = append(deleteKeys, key)
return false, nil
})
Expand Down

0 comments on commit 0e6034e

Please sign in to comment.