refactor: create InstantSendStorage to break circular dependency over instantsend/signing#6771
refactor: create InstantSendStorage to break circular dependency over instantsend/signing#6771knst wants to merge 1 commit intodashpay:developfrom
Conversation
… instantsend/signing
|
WalkthroughThe changes introduce a new abstract interface class, Estimated code review effort3 (30–60 minutes) 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
💤 Files with no reviewable changes (1)
🧰 Additional context used📓 Path-based instructions (1)src/**/*.{cpp,h,cc,cxx,hpp}📄 CodeRabbit Inference Engine (CLAUDE.md)
Files:
🧠 Learnings (4)📓 Common learningssrc/instantsend/signing.cpp (2)Learnt from: kwvg Learnt from: CR src/instantsend/signing.h (1)Learnt from: kwvg src/instantsend/instantsend.h (2)Learnt from: kwvg Learnt from: CR ⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
🔇 Additional comments (6)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
As discussed in dash#6742 (comment), the circular dependency concern raised there, alongside other reviewer suggestions and comments will be addressed in a follow-up and have been (see dash#6770). As for dash#6761, the review suggestion was noted and a |
Ooops, you have been 3 minutes faster. I opened this PR because I have seen https://github.com/dashpay/dash/pull/6761/files#r2219078456 and decided to take action! |
Issue being fixed or feature implemented
It resolves newly introduced circular dependency over instantsend/signing.
Same approach can be applied for https://github.com/dashpay/dash/pull/6761/files#r2219078456
What was done?
Created a new interface
instantsend::InstantSendStoragethat can be used all over codebase to break multiple circular dependency over instantsend. This PR is a minimal patch set to resolve instantsend/signing only. Further changes to be proposed in next PRs.How Has This Been Tested?
Run
test/lint/lint-circular-dependencies.pyBreaking Changes
N/A
Checklist: