Closed nkysg closed 1 month ago
The changes in this pull request primarily focus on updating the Cargo.toml
configuration and modifying several Rust source files to accommodate a new feature called force-deploy
. The force-upgrade
member path has been changed, dependencies have been added and removed across various packages, and new functions have been introduced to manage force upgrades more effectively. Additionally, a new module for force upgrade management has been added, while an obsolete module has been removed.
File Path | Change Summary |
---|---|
Cargo.toml | Updated force-upgrade member path; removed starcoin-vm-runtime dependency from multiple packages; added hex dependency and force-deploy feature in vm/force-upgrade . |
chain/open-block/src/lib.rs | Reorganized import statements; integrated ForceUpgrade struct into force_upgrade_management module import. |
chain/src/chain.rs | Modified get_force_upgrade_block_number function to be conditionally compiled under #[cfg(feature = "force-deploy")] . |
executor/src/block_executor.rs | Added imports for force upgrade management; defined create_force_upgrade_extra_txn and execute_extra_txn methods; updated BlockExecutedData struct. |
vm/force-upgrade/src/lib.rs | Introduced new public module force_upgrade_management under force-deploy feature. |
vm/vm-runtime/src/lib.rs | Removed force_upgrade_management module from public exports. |
vm/vm-runtime
files relevant to the updates made regarding the starcoin-vm-runtime
dependency and the introduction of the force-deploy
feature.Cargo.toml
file for a different package, removing a dependency but not directly related to the main PR's specific changes.🐇 In the code where rabbits play,
Paths are changed, dependencies sway.
Force upgrades hop with glee,
New features bloom for all to see.
With every line, a leap we take,
In the world of Rust, we make! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue Number: N/A
What is the new behavior?
-
-
Other information
Summary by CodeRabbit
New Features
force-deploy
for enhanced force upgrade management.Bug Fixes
Refactor
Chores