Repository navigation
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35848. ReviewsSee the guideline and AI policy for information on the review process. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
IsNull() for PSBT, PSBTInput, PSBTOutput
b6a65be to
5be681b
Compare
|
🚧 At least one of the CI tasks failed. HintsTry to run the tests locally, according to the documentation. However, a CI failure may still
Leave a comment here, if you need help tracking down a confusing failure. |
|
The test works and I have no objections to the code. But other than this PR's test, the only caller of the three I have a concept question: does it make sense to cover these methods, or would it be better to remove them (and the fuzzer calls)? |
|
@nebula-21 Are you still working on this, or can it be closed? |
|
🐙 This pull request conflicts with the target branch and needs rebase. |
Agree, opened a new PR removing the methods and added you as coauthor. |
2c16efb psbt: Remove unused IsNull() methods (nebula-21) Pull request description: This PR removes the `IsNull()` methods from `PartiallySignedTransaction`, `PSBTInput`, and `PSBTOutput`, along with their calls from the fuzz target. This methods have no production callers, their only callers are the fuzz target. As such, keeping these methods seems not useful. The motivation for this PR came from jeanpablojp's comment on [#35848](#35848 (comment)), added him as coauthor. ACKs for top commit: maflcko: review ACK 2c16efb 🥑 vicjuma: ACK 2c16efb sedited: ACK 2c16efb Tree-SHA512: 129933ae9803a2d053e340ee2a85efd1e5d9e5e38833fac0a0a9cbd467fec3157087959c464a8eeedb04ea99b1e5d7eba5a2fafde2e78a4fabcd247fac855477
2c16efbb7b5b5f0b188f320d9d4c92af602e9128 psbt: Remove unused IsNull() methods (nebula-21) Pull request description: This PR removes the `IsNull()` methods from `PartiallySignedTransaction`, `PSBTInput`, and `PSBTOutput`, along with their calls from the fuzz target. This methods have no production callers, their only callers are the fuzz target. As such, keeping these methods seems not useful. The motivation for this PR came from jeanpablojp's comment on [#35848](bitcoin/bitcoin#35848 (comment)), added him as coauthor. ACKs for top commit: maflcko: review ACK 2c16efbb7b5b5f0b188f320d9d4c92af602e9128 🥑 vicjuma: ACK 2c16efbb7b5b5f0b188f320d9d4c92af602e9128 sedited: ACK 2c16efbb7b5b5f0b188f320d9d4c92af602e9128 Tree-SHA512: 129933ae9803a2d053e340ee2a85efd1e5d9e5e38833fac0a0a9cbd467fec3157087959c464a8eeedb04ea99b1e5d7eba5a2fafde2e78a4fabcd247fac855477
The motivation for this PR came while reviewing PR#35553, I noticed on corecheck that the
IsNull()functions ofPartiallySignedTransaction,PSBTInput,PSBTOutputweren't covered by any test.This PR adds coverage for all of them.
This cases can be tested with the next diffs that don't cause test failure prior to this PR, but with this new test do:
Diff for
PartiallySignedTransactionDiff for
PSBTInputDiff for
PSBTOutput