Closed jackzhhuang closed 1 month ago
[!CAUTION]
Review failed
The head commit changed during the review from d1436a90782784aa3246d54eb04954a30c554636 to c5b928664894ad79faac98589c92126275cd67e3.
The changes introduce two new public methods in the BlockDAG
struct: save_dag_state_directly
, which enables direct insertion of a DagState
into the state store, and reachability_service
, which provides access to the MTReachabilityService
. The visibility of the reachability_service
field in the GhostdagManager
struct is updated to public. The reset
method in the WriteBlockChainService
is modified for block deletion using a reachability service. Additionally, Kubernetes configuration for the starcoin
application is updated.
File | Change Summary |
---|---|
flexidag/src/blockdag.rs | Added pub fn save_dag_state_directly(&self, hash: Hash, state: DagState) -> anyhow::Result<()> and pub fn reachability_service(&self) -> MTReachabilityService<DbReachabilityStore> methods. |
flexidag/src/ghostdag/protocol.rs | Changed visibility of reachability_service from pub(super) to pub in GhostdagManager . |
sync/src/block_connector/write_block_chain.rs | Modified reset method logic for block deletion using reachability service. |
sync/src/parallel/executor.rs | Updated waiting_for_parents method to include Arc<dyn Store> parameter and enhanced error handling. |
kube/manifest/starcoin-halley.yaml | Updated container image to starcoin/starcoin:dag-master , added node selector starcoin/node-pool: seed-pool . |
BlockDAG
methods for state management and reachability.BlockDAG
's state management and the new methods introduced in the main PR.BlockDAG
regarding state handling and pruning verification.🐇 In the land of blocks and chains so bright,
A reachability service comes to light.
With methods new and fields made clear,
The ghosts of blocks now draw near.
So hop along, let's celebrate,
For cleaner code, we won't be late! 🌟
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
Improvements
Bug Fixes