Skip to content

Conversation

@maflcko
Copy link
Member

@maflcko maflcko commented Jun 13, 2022

It seems an unnecessary burden to force MiniWallet call-sites to figure out for each tx whether it is mempool valid or not. The result will only be used for internal sanity checks. So remove the option:

  • Replace the vsize sanity check with a call to get_vsize().
  • Drop the fee check. Hopefully any future bug here will be caught by code-review or otherwise.

@fanquake fanquake added the Tests label Jun 13, 2022
@fanquake fanquake requested a review from instagibbs June 13, 2022 13:08
Copy link
Member

@instagibbs instagibbs left a comment

Choose a reason for hiding this comment

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

ACK fac7094

It's a confusing interface as-is, and these hidden checks imo are more likely to make tests less understandable.

@maflcko maflcko force-pushed the 2206-test-skip-tmpa- branch from fac7094 to fa779de Compare June 13, 2022 16:09
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 fa779de

Agree that this creates more confusion than it helps and can be removed. The journey of this parameter's logic went from "always test mempool validity" (fa085b4, introduction of the method) to "only test mempool validity if set to True" (a498acc, for performance reasons) to "never test mempool validity" (this PR).

@maflcko maflcko merged commit a55606c into bitcoin:master Jun 13, 2022
@maflcko maflcko deleted the 2206-test-skip-tmpa-🕕 branch June 13, 2022 20:16
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jun 15, 2022
Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Dec 2, 2022
Summary:
```
It seems an unnecessary burden to force MiniWallet call-sites to figure out for each tx whether it is mempool valid or not. The result will only be used for internal sanity checks. So remove the option:
```

Backport of [[bitcoin/bitcoin#25356 | core#25356]].

Depends on D12732.

Note: most tests are not converted to MiniWallet yet, but this change is trivial enough that it's not a problem.

Test Plan:
  ninja check-functional

Reviewers: #bitcoin_abc, sdulfari

Reviewed By: #bitcoin_abc, sdulfari

Differential Revision: https://reviews.bitcoinabc.org/D12733
@bitcoin bitcoin locked and limited conversation to collaborators Jun 13, 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