Skip to content

Commit

Permalink
Save snapshot only to file
Browse files Browse the repository at this point in the history
  • Loading branch information
lumos42 committed Feb 26, 2024
1 parent c429e49 commit 0326371
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions plugin/evm/limit_order.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,12 +473,6 @@ func (lop *limitOrderProcesser) saveMemoryDBSnapshot(acceptedBlockNumber *big.In
}

snapshotBytes := buf.Bytes()

err = lop.hubbleDB.Put([]byte(memoryDBSnapshotKey), snapshotBytes)
if err != nil {
return fmt.Errorf("Error in saving to DB: err=%v", err)
}

// write to snapshot file
if lop.snapshotFilePath != "" {
err = os.WriteFile(lop.snapshotFilePath, snapshotBytes, 0644)
Expand Down

0 comments on commit 0326371

Please sign in to comment.