fix: init v1 tree with custom forester#2319
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
📝 WalkthroughWalkthroughAdds a guard in registry checks that enforces Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@sdk-libs/program-test/src/indexer/test_indexer.rs`:
- Around line 1713-1723: The StateV2 branch is not accounting for a provided
forester while you later compute network_fee from forester before constructing
StateMerkleTreeBundle, which can create inconsistent metadata; update the
TreeType::StateV2 initialization (the match arm that constructs the StateV2
merkle tree) to either derive its network fee/config from forester the same way
as other tree types or add an explicit guard that rejects/returns an error when
forester.is_some() for TreeType::StateV2; ensure the change keeps
StateMerkleTreeBundle.network_fee in sync with how the tree was actually
initialized (referencing TreeType::StateV2, forester, network_fee, and
StateMerkleTreeBundle).
ℹ️ Review info
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
⛔ Files ignored due to path filters (2)
external/photonis excluded by none and included by noneprogram-tests/utils/src/e2e_test_env.rsis excluded by none and included by none
📒 Files selected for processing (2)
sdk-libs/program-test/src/indexer/state_tree.rssdk-libs/program-test/src/indexer/test_indexer.rs
SwenSchaeferjohann
left a comment
There was a problem hiding this comment.
lgtm but those external/photon seem to be old?
does git submodule update external/photon fix it?
13c857d to
a0183dc
Compare
|
reverted the the photon submodule diff |
Summary by CodeRabbit