-
Notifications
You must be signed in to change notification settings - Fork 0
Merge bitcoin/bitcoin#27695: test: Add test to check tx in the last block can be downloaded #1218
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.26-batch-477
Are you sure you want to change the base?
Merge bitcoin/bitcoin#27695: test: Add test to check tx in the last block can be downloaded #1218
Conversation
… be downloaded fa4c16b test: Add test to check tx in the last block can be downloaded (MarcoFalke) fadc849 test: Split up test_notfound_on_unannounced_tx test case (MarcoFalke) Pull request description: If a peer received an `inv` about a transaction, which was included in a block before receiving the corresponding `getdata`, it can be beneficial to send this transaction to the peer to aid compact block relay. Add a test for this to avoid breaking it in the future.
WalkthroughThe test file refactors its setup to use instance attributes instead of local variables and splits the test logic into two separate test methods: Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20–30 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 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 (2)📓 Common learnings📚 Learning: 2025-07-29T22:13:54.797ZApplied to files:
🪛 Ruff (0.14.7)test/functional/p2p_leak_tx.py56-56: Use f-string instead of Convert to f-string (UP032) 56-56: Logging statement uses (G001) 58-58: Use f-string instead of Convert to f-string (UP032) 58-58: Logging statement uses (G001) 🔇 Additional comments (1)
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 |
Backports bitcoin#27695
Original commit: 7be7e62
Changes
test_tx_in_block()to verify that transactions in the last block can still be downloaded (beneficial for compact block relay)test_notfound_on_unannounced_tx()methodDash-specific adaptations
txidinstead ofwtxidsince Dash doesn't have SegWitrehash()instead ofgetwtxid()for transaction hash comparisonself.generate(self.miniwallet, 1)andself.generate(self.gen_node, 100))🤖 Generated with Claude Code
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.