Repository navigation
partial bitcoin/bitcoin#25734: wallet, refactor: #24584 follow-ups - #1208
Conversation
|
Warning Rate limit exceeded@DashCoreAutoGuix has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 0 minutes and 14 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (13)
✨ 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 |
Verification Complete ✅Bitcoin Commit: 64f7a19 (PR bitcoin#25734) SummaryThis PR successfully backports Bitcoin PR bitcoin#25734 (wallet refactor follow-ups to bitcoin#24584), which adds the UNKNOWN OutputType and refactors CoinsResult methods for better code organization. Changes VerifiedCore Backport:
Dash-Specific Adaptations:
Intentionally Excluded:
Validation
This is a clean, well-adapted backport ready for merge. |
knst
left a comment
There was a problem hiding this comment.
mark as partial, otherwise it looks good for me.
Missing changes (beside taproot) are:
- src/wallet/scriptpubkeyman.cpp
- src/wallet/wallet.cpp
Summary
Backport of Bitcoin PR bitcoin#25734 to Dash.
This PR refactors
CoinsResultto use astd::map<OutputType, std::vector<COutput>>storage instead of individual named vectors, and adds helper methods for common operations.Dash-specific adaptations:
sendallRPC command (SegWit-specific feature not applicable to Dash)GetOutputType()to only handle LEGACY and UNKNOWN typesOUTPUT_TYPESfromextern constarray tostatic constexprCoinsResulthelper methods:All(),Size(),Clear(),Erase(),Shuffle(),Add()all()→All(),size()→Size(), etc.)src/coinjoin/client.cpp,src/wallet/coinjoin.cpp,src/rpc/evo.cpp,src/rpc/masternode.cppChange metrics:
Bitcoin PR
bitcoin#25734
Test plan