Skip to content

Commit dabe302

Browse files
authored
Add support for ArchivalDb::rollback (#2297)
1 parent c7b2290 commit dabe302

File tree

17 files changed

+776
-198
lines changed

17 files changed

+776
-198
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
# 2026-01-05
2+
- #2297 **Breaking change**: Removes the `separate_archival_state` flag. After this change, `livedb` and `archivaldb` are always stored in separate locations. Users should remove this flag from their configurations. If it was previously set to false, the node will need to be resynced from genesis.
3+
14
# 2025-12-31
25
- #2281 Breaking change for DaService implementations: new method `DaService::get_approximate_block_time`
6+
37
# 2026-01-01
48
- #2256 Enforce the EVM block gas limit and introduce the EVM tx gas limit in config.
59
- #2279 Propagates fee information to ethereum block responses

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ nearly-linear = { path = "crates/utils/nearly-linear", version = "0.3" }
192192
# Dependencies maintained by Sovereign
193193
jmt = { version = "0.12.0", default-features = false }
194194
reltester = { git = "https://github.com/sovereign-labs/reltester.git", rev = "d6209abff72929f5ba41614f5cea3e4a748428c3" }
195-
rockbound = { git = "https://github.com/sovereign-labs/rockbound", rev = "e8d1cfa7402a3ab90369d664bd88a52394cd40e6" }
195+
rockbound = { git = "https://github.com/sovereign-labs/rockbound", rev = "e6a1af46e500a5d3ec5c949d14f56f1440231c4d" }
196196
nmt-rs = { version = "0.2.5", features = ["serde", "borsh"] }
197197
# External dependencies
198198
nomt-core = { version = "1.0.3", default-features = false, features = ["borsh", "serde"] }

crates/full-node/full-node-configs/src/snapshots/sov_full_node_configs__runner__tests__correct_config.snap

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
source: crates/full-node/full-node-configs/src/runner.rs
3-
assertion_line: 226
43
expression: config
54
---
65
{
@@ -19,8 +18,7 @@ expression: config
1918
"kernel_leaf_cache_size": null,
2019
"pruner_block_interval": null,
2120
"pruner_versions_to_keep": null,
22-
"pruner_max_batch_size": null,
23-
"separate_archival_state": false
21+
"pruner_max_batch_size": null
2422
},
2523
"runner": {
2624
"da_polling_interval_ms": 10000,

crates/full-node/full-node-configs/src/snapshots/sov_full_node_configs__runner__tests__correct_config_with_postgres.snap

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ expression: config
1818
"kernel_leaf_cache_size": null,
1919
"pruner_block_interval": null,
2020
"pruner_versions_to_keep": null,
21-
"pruner_max_batch_size": null,
22-
"separate_archival_state": false
21+
"pruner_max_batch_size": null
2322
},
2423
"runner": {
2524
"da_polling_interval_ms": 10000,

crates/full-node/full-node-configs/src/snapshots/sov_full_node_configs__runner__tests__correct_config_with_rate_limiter.snap

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ expression: config
1818
"kernel_leaf_cache_size": null,
1919
"pruner_block_interval": null,
2020
"pruner_versions_to_keep": null,
21-
"pruner_max_batch_size": null,
22-
"separate_archival_state": false
21+
"pruner_max_batch_size": null
2322
},
2423
"runner": {
2524
"da_polling_interval_ms": 10000,

crates/full-node/sov-db/src/config.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ pub struct RollupDbConfig {
5454
pub pruner_versions_to_keep: Option<usize>,
5555
/// Maximum number of keys to prune in a single batch.
5656
pub pruner_max_batch_size: Option<usize>,
57-
58-
/// Whether to use a separate db for archival state.
59-
#[serde(default)]
60-
pub separate_archival_state: bool,
6157
}
6258

6359
impl RollupDbConfig {
@@ -92,7 +88,6 @@ impl RollupDbConfig {
9288
pruner_block_interval: Some(100),
9389
pruner_versions_to_keep: Some(20),
9490
pruner_max_batch_size: None,
95-
separate_archival_state: false,
9691
}
9792
}
9893

0 commit comments

Comments
 (0)