feat(starknet_batcher): use transaction converter to infer executable from mempool internal tx#3509
Conversation
58993e1 to
e9a2da5
Compare
59b9bb4 to
b187730
Compare
e9a2da5 to
835245d
Compare
b187730 to
0c801e7
Compare
835245d to
f4bc18e
Compare
0c801e7 to
0811a41
Compare
ShahakShama
left a comment
There was a problem hiding this comment.
Reviewed 6 of 8 files at r1, 2 of 2 files at r2, all commit messages.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @noamsp-starkware)
crates/starknet_batcher/src/batcher.rs line 640 at r2 (raw file):
let transaction_converter = TransactionConverter::new( class_manager_client, config.block_builder_config.chain_info.chain_id.clone(),
@ArniStarkware @ayeletstarkware is it more correct to get the chain id from here or from storage config?
crates/starknet_batcher/src/transaction_provider_test.rs line 93 at r2 (raw file):
tx_sender, tx_receiver, // TODO(noamsp): use MockTransactionConverter
Same
crates/starknet_batcher/src/batcher_test.rs line 103 at r2 (raw file):
mempool_client: MockMempoolClient::new(), block_builder_factory: MockBlockBuilderFactoryTrait::new(), // TODO(noamsp): use MockTransactionConverter
In this case I think it's more correct using MockClassManagerClient. Especially because you're going to use it in the state reader as well
crates/starknet_api/src/test_utils/invoke.rs line 159 at r2 (raw file):
} pub fn internal_invoke_tx(invoke_args: InvokeTxArgs) -> InternalRpcTransaction {
I'd like the person who wrote the rest of these to review this as well
From a quick git blame it looks like it's either @ArniStarkware or @ayeletstarkware
ArniStarkware
left a comment
There was a problem hiding this comment.
Reviewed 1 of 8 files at r1.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @ayeletstarkware and @noamsp-starkware)
crates/starknet_api/src/test_utils/invoke.rs line 159 at r2 (raw file):
Previously, ShahakShama wrote…
I'd like the person who wrote the rest of these to review this as well
From a quick git blame it looks like it's either @ArniStarkware or @ayeletstarkware
Previously, ShahakShama wrote…
@ArniStarkware @ayeletstarkware is it more correct to get the chain id from here or from storage config?
Theoretically, Both are fine. Both should be the same value (if not, we have a problem).
I see that in storage config the extraction of the value is more direct.
… from mempool internal tx
noamsp-starkware
left a comment
There was a problem hiding this comment.
Reviewable status:
complete! all files reviewed, all discussions resolved (waiting on @ayeletstarkware)
crates/starknet_batcher/src/batcher.rs line 640 at r2 (raw file):
Previously, ArniStarkware (Arnon Hod) wrote…
Theoretically, Both are fine. Both should be the same value (if not, we have a problem).
I see that in storage config the extraction of the value is more direct.
@ArniStarkware Changed as you suggested
f4bc18e to
cb32339
Compare
0811a41 to
066ebde
Compare
ShahakShama
left a comment
There was a problem hiding this comment.
Reviewed 7 of 7 files at r3, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @ayeletstarkware)
823725b
into
noam.s/feat_starknet_mempool_add_TransactionReference_new_from_InteralRpcTransaction

No description provided.