-
Notifications
You must be signed in to change notification settings - Fork 213
Chore/blockifier/version update #2848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…onstants from file and update files 'versioned_constants/' to be compatible with new version
…k_context' field from 'BlockContext' to 'Arc<BlockContext>'
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 0.14.0-beta #2848 +/- ##
==============================================
Coverage ? 75.82%
==============================================
Files ? 186
Lines ? 20464
Branches ? 0
==============================================
Hits ? 15516
Misses ? 3973
Partials ? 975 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Minimum supported Rust version is |
Minimum supported Rust version is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
vm/rust/src/lib.rs
Outdated
@@ -458,6 +459,10 @@ pub extern "C" fn cairoVMExecute( | |||
l2_gas: l2_gas_consumed, | |||
}, | |||
&fee_type, | |||
match txn { | |||
Transaction::Account(txn) => txn.tip(), | |||
Transaction::L1Handler(_) => starknet_api::transaction::fields::Tip(0), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Short name here (just Tip(0)). No need for the long name I believe
let mut file = File::open(Path::new(&path)) | ||
.with_context(|| format!("Failed to open file: {}", path))?; | ||
|
||
let mut contents = String::new(); | ||
file.read_to_string(&mut contents) | ||
.with_context(|| format!("Failed to read contents of file: {}", path))?; | ||
|
||
let constants: VersionedConstants = serde_json::from_str(&contents) | ||
let constants = VersionedConstants::from_path(Path::new(&path)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
* bump blockifier version * Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version * Use Tip field * Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>' * Address linter suggestion * Updated minimum requried rust version in README and MAKEFILE * use short name for 'Tip' --------- Co-authored-by: Rodrigo <rodrodpino@gmail.com>
* bump blockifier version * Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version * Use Tip field * Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>' * Address linter suggestion * Updated minimum requried rust version in README and MAKEFILE * use short name for 'Tip' --------- Co-authored-by: Rodrigo <rodrodpino@gmail.com>
* bump blockifier version * Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version * Use Tip field * Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>' * Address linter suggestion * Updated minimum requried rust version in README and MAKEFILE * use short name for 'Tip' --------- Co-authored-by: Rodrigo <rodrodpino@gmail.com>
* bump blockifier version * Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version * Use Tip field * Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>' * Address linter suggestion * Updated minimum requried rust version in README and MAKEFILE * use short name for 'Tip' --------- Co-authored-by: Rodrigo <rodrodpino@gmail.com>
* bump blockifier version * Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version * Use Tip field * Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>' * Address linter suggestion * Updated minimum requried rust version in README and MAKEFILE * use short name for 'Tip' --------- Co-authored-by: Rodrigo <rodrodpino@gmail.com>
* bump blockifier version * Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version * Use Tip field * Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>' * Address linter suggestion * Updated minimum requried rust version in README and MAKEFILE * use short name for 'Tip' --------- Co-authored-by: Rodrigo <rodrodpino@gmail.com>
* bump blockifier version * Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version * Use Tip field * Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>' * Address linter suggestion * Updated minimum requried rust version in README and MAKEFILE * use short name for 'Tip' --------- Co-authored-by: Rodrigo <rodrodpino@gmail.com>
* bump blockifier version * Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version * Use Tip field * Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>' * Address linter suggestion * Updated minimum requried rust version in README and MAKEFILE * use short name for 'Tip' --------- Co-authored-by: Rodrigo <rodrodpino@gmail.com>
* bump blockifier version * Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version * Use Tip field * Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>' * Address linter suggestion * Updated minimum requried rust version in README and MAKEFILE * use short name for 'Tip' --------- Co-authored-by: Rodrigo <rodrodpino@gmail.com>
* bump blockifier version * Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version * Use Tip field * Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>' * Address linter suggestion * Updated minimum requried rust version in README and MAKEFILE * use short name for 'Tip' --------- Co-authored-by: Rodrigo <rodrodpino@gmail.com>
* bump blockifier version * Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version * Use Tip field * Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>' * Address linter suggestion * Updated minimum requried rust version in README and MAKEFILE * use short name for 'Tip' --------- Co-authored-by: Rodrigo <rodrodpino@gmail.com>
* bump blockifier version * Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version * Use Tip field * Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>' * Address linter suggestion * Updated minimum requried rust version in README and MAKEFILE * use short name for 'Tip' --------- Co-authored-by: Rodrigo <rodrodpino@gmail.com>
* bump blockifier version * Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version * Use Tip field * Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>' * Address linter suggestion * Updated minimum requried rust version in README and MAKEFILE * use short name for 'Tip' --------- Co-authored-by: Rodrigo <rodrodpino@gmail.com>
* Chore/blockifier/version update (#2848) * bump blockifier version * Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version * Use Tip field * Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>' * Address linter suggestion * Updated minimum requried rust version in README and MAKEFILE * use short name for 'Tip' --------- Co-authored-by: Rodrigo <rodrodpino@gmail.com> * blockifier version update to new release candidate (#2869) * blockifier version bumped to release candidate * blockifier versioned constants updated * fix proposer test * feat:(Blockifier): convert l2 gas to l1 gas when NoL2Gas (#2942) Blockifier, convert l2 gas to l1 gas when NoL2Gas GasVectorComputationMode and use overidden values in response * Fix/trace result inner execution resources (#2964) * blockifier feature node_api * trace return inner execution resources l1_gas and l2_gas * feat: rpcv9 l1 handler traces return revert reason (#2941) * L1Handler Tx Trace is not REVERTIBLE_FUNCTION_INVOCATION * L1Handler traces return revert reason * RPC version < 9 returns dummy L1_Handler trace for reverted trace * update comments * fix test * use ExecuteInvocation.FunctionInvocation == nil as reverted flag * Add test for reverted L1Handler trace * add AdaptVMTransaction L1Handler reverted for rpc < 9 * update Proposal test for 0.14.0 * update rust version workflow --------- Co-authored-by: Rodrigo <rodrodpino@gmail.com>
Blockifier::VersionedConstants
were breaking the related tests undervm_test.go
due to change in the schema of those constant, related data is updated using this as source.AccountExecutionFlags
do expectstrict_nonce_check
field! Requires rust version >=1.86.0