-
Notifications
You must be signed in to change notification settings - Fork 0
Merge bitcoin/bitcoin#26733: test: Add test for sendmany rpc that uses subtractfeefrom parameter
#1137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: backport-0.25-batch-415
Are you sure you want to change the base?
Merge bitcoin/bitcoin#26733: test: Add test for sendmany rpc that uses subtractfeefrom parameter
#1137
Conversation
…tractfeefrom` parameter 057057a Add test for `sendmany` rpc that uses `subtractfeefrom` parameter (Yusuf Sahin HAMZA) Pull request description: This PR adds test that uses `sendmany` rpc to send **BTC** to multiple addresses using `subtractfeefrom` parameter, then checks receiver addresses balances to make sure fees are subtracted correctly. ACKs for top commit: achow101: ACK 057057a Tree-SHA512: 51167120d489f0ff7b8b9855424d07cb55a8965984f904643cddf45e7a08c350eaded498c350ec9c660edf72c2f128ec142347c9c79d5043d9f6cd481b15cd7e
WalkthroughAdds a new test case in wallet_basic functional tests to perform a sendmany with subtract-fee-from-outputs for two recipients, then verifies recipient received amounts, sender balance reduction, and fee distribution consistency with prior balance assertions. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (2)test/functional/**/*.py📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**⚙️ CodeRabbit configuration file
Files:
🧠 Learnings (1)📓 Common learnings🧬 Code graph analysis (1)test/functional/wallet_basic.py (2)
🔇 Additional comments (1)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Ruff (0.13.1)test/functional/wallet_basic.py�[1;31mruff failed�[0m 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 |
Backport of Bitcoin PR bitcoin#26733
This is a backport of Bitcoin Core PR bitcoin#26733
Original Bitcoin Commit
Changes
This PR adds a test for the
sendmanyRPC command that uses thesubtractfeefromparameter to send to multiple addresses, verifying that fees are correctly subtracted from the specified addresses.Dash Adaptations
Testing
test/functional/wallet_basic.pyBackported-by: Claude (Agentic Backporting System)
Bitcoin-PR: bitcoin#26733
Bitcoin-Commit: 5394522
Summary by CodeRabbit