File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
12
12
- Add a new struct ` LegacyStorageTrace ` to support legacy storage trace support
13
13
([ #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 ) )
16
14
17
15
### Changed
18
16
@@ -21,6 +19,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
21
19
([ #58 ] ( https://github.com/scroll-tech/stateless-block-verifier/pull/58 ) )
22
20
- ` BlockTrace ` now has a generic parameter ` S ` for the storage trace type, default to ` StorageTrace `
23
21
([ #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 ) )
24
24
25
25
26
26
## [ 2.0.0] - 2024-09-04
Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ pub struct RunRpcCommand {
20
20
/// RPC URL
21
21
#[ arg( short, long, default_value = "http://localhost:8545" ) ]
22
22
url : Url ,
23
- /// Legacy rpc
23
+ /// Enable flatten proofs
24
24
#[ arg( short, long) ]
25
- legacy : bool ,
25
+ flatten_proofs : bool ,
26
26
/// Start Block number
27
27
#[ arg( short, long, default_value = "latest" ) ]
28
28
start_block : StartBlockSpec ,
@@ -54,9 +54,9 @@ pub enum StartBlockSpec {
54
54
impl RunRpcCommand {
55
55
pub async fn run ( self , fork_config : impl Fn ( u64 ) -> HardforkConfig ) -> anyhow:: Result < ( ) > {
56
56
dev_info ! (
57
- "Running RPC command with url: {}, legacy support: {}" ,
57
+ "Running RPC command with url: {}, flatten proofs support: {}" ,
58
58
self . url,
59
- self . legacy
59
+ self . flatten_proofs
60
60
) ;
61
61
let provider = ProviderBuilder :: new ( ) . on_http ( self . url ) ;
62
62
@@ -83,7 +83,7 @@ impl RunRpcCommand {
83
83
let rx = rx. clone ( ) ;
84
84
handles. spawn ( async move {
85
85
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 {
87
87
let trace = _provider
88
88
. raw_request :: < _ , BlockTrace < LegacyStorageTrace > > (
89
89
"scroll_getBlockTraceByNumberOrHash" . into ( ) ,
You can’t perform that action at this time.
0 commit comments