Repository navigation
test: miner: add coverage for -blockmintxfee setting - #27620
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
|
Concept ACK |
brunoerg
left a comment
There was a problem hiding this comment.
crACK 989fa37670cbb386873a765799fd6db8ea6986f7
Nice test coverage!
Just a thought that came to my mind while reviewing it:
- Seems like these test coverage uses just 1 node, if we'd stop node1 right before line 81, it wouldn't make the test to fail. So, it seems that
-minrelaytxfee=0is just to makesend_self_transfer- which callssendrawtransaction- not fail (even if we might not have any connection).
989fa37 to
7286efe
Compare
|
Thanks for reviewing! Addressed the nit.
Yes indeed, this sub-test works with a single node (it follows the design of previously introduced tests |
brunoerg
left a comment
There was a problem hiding this comment.
reACK 7286efece4442c5afe4e19fa6a7d2420444c904c
7286efe to
95465cd
Compare
Co-authored-by: glozow <[email protected]>
95465cd to
bbbb89d
Compare
This PR adds missing test coverage for the
-blockmintxfeeoption, which can be used by miners to specify the lowest fee-rate for transactions to be included in blocks. The setting was introduced in PR #9380 (commit daec955), with the rationale to decouple different minimum fees from-minrelaytxfee. According to the PR description it "should be set by miners to reflect their marginal cost of transmitting extra bytes.".On each iteration, the test creates and submits two txs using MiniWallet: one with the the minimum fee-rate as specified for
-blockmintxfeeand a second one with a fee-rate a little below that (-0.01 sats/vbyte). Then it checks that only the first one is picked for the block template and accordingly also only exists in the block that is mined after. This is repeatedly done for a fixed (but obviously somewhat arbitrary) list of different-blockmintxfeesettings on a single node, including the default and zero (i.e. no minimum fee a.k.a. "include even zero-fee txs") settings.