Skip to content

Commit

Permalink
txs & err
Browse files Browse the repository at this point in the history
  • Loading branch information
ucwong committed Sep 24, 2023
1 parent 75c0749 commit 01afc82
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backend/chaindb.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package backend

import (
"encoding/binary"
"errors"
"github.com/CortexFoundation/merkletree"
"github.com/CortexFoundation/torrentfs/params"
"github.com/CortexFoundation/torrentfs/types"
Expand Down Expand Up @@ -145,7 +144,7 @@ func (fs *ChainDB) Init() (err error) {
return
}

func (fs *ChainDB) Reset() error {
/*func (fs *ChainDB) Reset() error {
fs.blocks = nil
fs.checkPoint.Store(0)
fs.lastListenBlockNumber.Store(0)
Expand All @@ -154,7 +153,7 @@ func (fs *ChainDB) Reset() error {
}
log.Warn("Storage status reset")
return nil
}
}*/

func (fs *ChainDB) Close() error {
defer fs.db.Close()
Expand Down

0 comments on commit 01afc82

Please sign in to comment.