From 01afc8203c14519e9e96efed7758a66049cc2662 Mon Sep 17 00:00:00 2001 From: ucwong Date: Sun, 24 Sep 2023 21:09:29 +0800 Subject: [PATCH] txs & err --- backend/chaindb.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/chaindb.go b/backend/chaindb.go index 0cfe0ce..4e2e2c5 100644 --- a/backend/chaindb.go +++ b/backend/chaindb.go @@ -18,7 +18,6 @@ package backend import ( "encoding/binary" - "errors" "github.com/CortexFoundation/merkletree" "github.com/CortexFoundation/torrentfs/params" "github.com/CortexFoundation/torrentfs/types" @@ -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) @@ -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()