Skip to content

Conversation

@maflcko
Copy link
Member

@maflcko maflcko commented Jun 1, 2022

It should be safe to set, because MiniWallet will only ever deal with test transactions, so loss-of-funds is not a reason to keep the feerate check.

It is beneficial to set, as it makes tests less verbose to write. Also, it may speed up tests, as the fee-check can be skipped: #25087 (comment)

@fanquake fanquake added the Tests label Jun 1, 2022
@fanquake fanquake requested a review from theStack June 1, 2022 15:28
@michaelfolkson
Copy link

Concept ACK, Approach ACK

Leaving other tests (e.g. feature_dbcrash.py) that use MiniWallet and have a maxfeerate check for a follow up PR? Or include in this PR?

@maflcko
Copy link
Member Author

maflcko commented Jun 1, 2022

I think I covered all cases. Can you point to a line where MiniWallet::sendrawtransaction is called that passes the option?

Copy link
Contributor

@theStack theStack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code-review ACK fafaad9

Leaving other tests (e.g. feature_dbcrash.py) that use MiniWallet and have a maxfeerate check for a follow up PR? Or include in this PR?

Note that other tests that pass the maxfeerate parameter explicitly directly call the node's sendrawtransaction RPC (e.g. self.nodes[0].sendrawtransaction(...)), not the MiniWallet method with the same name. This PR tackles all instances of MiniWallet.sendrawtransaction (verified that the two in mempool_accept.py are the only ones).

@michaelfolkson
Copy link

Sorry for the noise

ACK fafaad9

@maflcko
Copy link
Member Author

maflcko commented Jun 1, 2022

Sure, no worries.

@maflcko maflcko merged commit 1c7ef0a into bitcoin:master Jun 1, 2022
@maflcko maflcko deleted the 2206-test-mini-fast-📨 branch June 1, 2022 18:18
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jun 2, 2022
…saction()

fafaad9 test: Set maxfeerate=0 in MiniWallet sendrawtransaction() (MacroFake)

Pull request description:

  It should be safe to set, because MiniWallet will only ever deal with test transactions, so loss-of-funds is not a reason to keep the feerate check.

  It is beneficial to set, as it makes tests less verbose to write. Also, it may speed up tests, as the fee-check can be skipped: bitcoin#25087 (comment)

ACKs for top commit:
  michaelfolkson:
    ACK fafaad9
  theStack:
    Code-review ACK fafaad9

Tree-SHA512: 94c5c163595207a295c7b21f0127d669a9307f6f8b1de5e043d43c52a6714076e2fdce65f2644308a2b90c679642c94f771dab1ff8bc5c0c8b1f5013324b3902
@bitcoin bitcoin locked and limited conversation to collaborators Jun 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants