Skip to content

Commit

Permalink
[light-node] temporarily disable code on reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
kroggen committed Jul 2, 2024
1 parent 7308ab8 commit ab55b53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions chain/reorg.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,13 @@ func (cs *ChainService) reorg(topBlock *types.Block, marker *ReorgMarker) error
// save the dummydb to file
cs.cdb.store.IoCtl("save")

Check failure on line 155 in chain/reorg.go

View workflow job for this annotation

GitHub Actions / build_and_test

cs.cdb.store.IoCtl undefined (type db.DB has no field or method IoCtl)
}
/*
// if using the delayed deletion database for the state
if cs.sdb.store.Type() == "deldeldb" {
// discard the queue of deletions
cs.sdb.store.IoCtl("reset-deletions")
}
*/

err = reorg.rollback()
if err != nil {
Expand Down
2 changes: 0 additions & 2 deletions state/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ func (sdb *ChainStateDB) Clone() *ChainStateDB {
newSdb := &ChainStateDB{
store: sdb.store,
states: sdb.GetStateDB().Clone(),
lightnode: lightnode,
testmode: testmode,
}
return newSdb
}
Expand Down

0 comments on commit ab55b53

Please sign in to comment.