Skip to content

Commit 84100f6

Browse files
committed
defaults to legacy
1 parent 5d5e0b6 commit 84100f6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Add a new struct `LegacyStorageTrace` to support legacy storage trace support
1313
([#58](https://github.com/scroll-tech/stateless-block-verifier/pull/58))
14-
- Add a cli flag `--legacy` to enable support of legacy rpc node
15-
([#58](https://github.com/scroll-tech/stateless-block-verifier/pull/58))
1614

1715
### Changed
1816

@@ -21,6 +19,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2119
([#58](https://github.com/scroll-tech/stateless-block-verifier/pull/58))
2220
- `BlockTrace` now has a generic parameter `S` for the storage trace type, default to `StorageTrace`
2321
([#58](https://github.com/scroll-tech/stateless-block-verifier/pull/58))
22+
- rpc mode defaults to use legacy storage trace, using the flag `--flatten-proofs` to enable support of flatten proofs
23+
([#58](https://github.com/scroll-tech/stateless-block-verifier/pull/58))
2424

2525

2626
## [2.0.0] - 2024-09-04

crates/bin/src/commands/run_rpc.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ pub struct RunRpcCommand {
2020
/// RPC URL
2121
#[arg(short, long, default_value = "http://localhost:8545")]
2222
url: Url,
23-
/// Legacy rpc
23+
/// Enable flatten proofs
2424
#[arg(short, long)]
25-
legacy: bool,
25+
flatten_proofs: bool,
2626
/// Start Block number
2727
#[arg(short, long, default_value = "latest")]
2828
start_block: StartBlockSpec,
@@ -54,9 +54,9 @@ pub enum StartBlockSpec {
5454
impl RunRpcCommand {
5555
pub async fn run(self, fork_config: impl Fn(u64) -> HardforkConfig) -> anyhow::Result<()> {
5656
dev_info!(
57-
"Running RPC command with url: {}, legacy support: {}",
57+
"Running RPC command with url: {}, flatten proofs support: {}",
5858
self.url,
59-
self.legacy
59+
self.flatten_proofs
6060
);
6161
let provider = ProviderBuilder::new().on_http(self.url);
6262

@@ -83,7 +83,7 @@ impl RunRpcCommand {
8383
let rx = rx.clone();
8484
handles.spawn(async move {
8585
while let Ok(block_number) = rx.recv().await {
86-
let l2_trace: BlockTrace = if self.legacy {
86+
let l2_trace: BlockTrace = if !self.flatten_proofs {
8787
let trace = _provider
8888
.raw_request::<_, BlockTrace<LegacyStorageTrace>>(
8989
"scroll_getBlockTraceByNumberOrHash".into(),

0 commit comments

Comments
 (0)