test: return chainlock height from wait_for_wallet_tx_chainlocked#766
test: return chainlock height from wait_for_wallet_tx_chainlocked#766xdustinface wants to merge 1 commit into
wait_for_wallet_tx_chainlocked#766Conversation
The helper's `BlockProcessed { chain_lock: Some(_), .. }` branch returned the tx's own block height instead of the chainlock's height, which broke `test_chainlock_promotes_in_block_tx` whenever the SPV client processed the tx's block after the chainlock had already arrived (the common ordering when filter sync runs ahead of block delivery). In that case the wallet emits `BlockProcessed` with the chainlock attached, the helper returned the tx block height, and the test's `promoted_at >= cl_height` assertion failed even though the tx was correctly chainlocked.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe test helper function ChangesWallet Transaction Chain Lock Helper Update
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsStopped waiting for pipeline failures after 30000ms. One of your pipelines takes longer than our 30000ms fetch window to run, so review may not consider pipeline-failure results for inline comments if any failures occurred after the fetch window. Increase the timeout if you want to wait longer or run a 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v0.42-dev #766 +/- ##
=============================================
+ Coverage 72.26% 72.59% +0.33%
=============================================
Files 320 320
Lines 70275 70271 -4
=============================================
+ Hits 50785 51016 +231
+ Misses 19490 19255 -235
|
The helper's
BlockProcessed { chain_lock: Some(_), .. }branch returned the tx's own block height instead of the chainlock's height, which broketest_chainlock_promotes_in_block_txwhenever the SPV client processed the tx's block after the chainlock had already arrived (the common ordering when filter sync runs ahead of block delivery). In that case the wallet emitsBlockProcessedwith the chainlock attached, the helper returned the tx block height, and the test'spromoted_at >= cl_heightassertion failed even though the tx was correctly chainlocked.Summary by CodeRabbit