Skip to content

Commit d20b1ac

Browse files
authored
refactor(cache)!: remove gob cache (#3047)
* chore: log non included height * remove gob cache * updates * bring back clear cache flag * cleanup syncing flow * simplify * fix IsHeightDAIncluded to not always rely on cache * save only on exit * remove debug log * persist as we go
1 parent 2510fe7 commit d20b1ac

File tree

20 files changed

+808
-607
lines changed

20 files changed

+808
-607
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616
### Changes
1717

1818
- Improve `cache.NumPendingData` to not return empty data. Automatically bumps `LastSubmittedHeight` to reflect that. ([#3046](https://github.com/evstack/ev-node/pull/3046))
19+
- **BREAKING** Make pending events cache and tx cache fully ephemeral. Those will be re-fetched on restart. DA Inclusion cache persists until cleared up after DA inclusion has been processed. Persist accross restart using store metadata. ([#3047](https://github.com/evstack/ev-node/pull/3047))
1920

2021
## v1.0.0-rc.2
2122

block/components.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func (bc *Components) Stop() error {
112112
}
113113
}
114114
if bc.Cache != nil {
115-
if err := bc.Cache.SaveToDisk(); err != nil {
115+
if err := bc.Cache.SaveToStore(); err != nil {
116116
errs = errors.Join(errs, fmt.Errorf("failed to save caches: %w", err))
117117
}
118118
}

0 commit comments

Comments
 (0)