blockifier_reexecution: extract contract_class_mapping_dumper into ConsecutiveRpcStateReaders#13741
Conversation
PR SummaryMedium Risk Overview When writing block reexecution data, the code now clones this Reviewed by Cursor Bugbot for commit 1614cea. Bugbot is set up for automated code reviews on this repo. Configure here. |
Yoni-Starkware
left a comment
There was a problem hiding this comment.
@Yoni-Starkware made 1 comment.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on AvivYossef-starkware and noaov1).
crates/blockifier_reexecution/src/state_reader/rpc_state_reader.rs line 708 at r1 (raw file):
let serializable_data_prev_block = SerializableDataPrevBlock { state_maps: block_state.get_initial_reads().unwrap(), contract_class_mapping: contract_class_mapping_dumper.lock().unwrap().clone().unwrap(),
Why do you need this additional clone?
Code quote:
er.lock().unwrap().clone().unwrap()…nsecutiveRpcStateReaders
f51f1f6 to
1614cea
Compare
AvivYossef-starkware
left a comment
There was a problem hiding this comment.
@AvivYossef-starkware made 1 comment.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on noaov1 and Yoni-Starkware).
crates/blockifier_reexecution/src/state_reader/rpc_state_reader.rs line 708 at r1 (raw file):
Previously, Yoni-Starkware (Yoni) wrote…
Why do you need this additional clone?
We can take it here since it's the end of its use,
Yoni-Starkware
left a comment
There was a problem hiding this comment.
@Yoni-Starkware reviewed 1 file and all commit messages, made 1 comment, and resolved 1 discussion.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on noaov1).

No description provided.