Closed jackzhhuang closed 3 months ago
The recent updates involve significant changes to blockchain functionality, including the removal of certain test functions, enhancements to block headers with new fields for versioning and pruning, and revisions aimed at deterministic block creation. These changes also optimize verification processes and adjustment of logging for better debugging. Overall, these modifications are intended to streamline operations and improve the reliability and integrity of the system.
Files Grouped | Change Summary |
---|---|
executor/tests/* , network/tests/* |
Removed outdated tests for FlexiDagConfig ; updated block creation to use deterministic methods for reliability. |
types/src/block/mod.rs , flexidag/src/blockdag.rs |
Enhanced BlockHeader with new fields for versioning and pruning; introduced PruningPointManager for improved state management. |
vm/vm-runtime/src/starcoin_vm.rs , vm/types/src/block_metadata/mod.rs , vm/types/src/genesis_config.rs |
Removed the ability to retrieve FlexiDagConfig ; modified handling of parents_hash ; added new methods for specific ChainId instances. |
vm/transaction-builder/src/lib.rs , vm/starcoin-transactional-test-harness/src/lib.rs |
Updated block creation logic, including hardcoded values for consistent behavior in transaction processing. |
vm/starcoin-transactional-test-harness/tests/cases/* |
Simplified test cases and adjusted initialization commands for greater adaptability. |
sequenceDiagram
participant A as Client
participant B as Executor
participant C as Block
participant D as Config
A->>B: Request block creation
B->>D: Check configuration for parameters
D-->>B: Return parameters (version, pruning)
B->>C: Create block with parameters
C-->>B: Return new block
B->>A: Send block confirmation
🐇 "In the code where changes bloom,
Blocks march forth, dispelling gloom.
Headers pruned, and tests refined,
A rabbit's joy for what's aligned!
From chaos, order starts to grow,
Hopping forth, let's watch it flow!" 🥕
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?
The block header will remain compatible if more fields are added in the future.
Summary by CodeRabbit
New Features
PruningPointManager
for better management of pruning within the BlockDAG.version
,pruning_point
) in the block header for improved metadata management.dag_test
andvega
methods for optimized chain identification.Bug Fixes
Chores
These changes collectively enhance the blockchain's performance, reliability, and overall user experience.