Skip to content

Conversation

@jonatack
Copy link
Member

@jonatack jonatack commented Apr 6, 2020

As a follow-up to #18484, the new tests are good but bury the one non-duplicate line in each test that sets the witness script, and there is no logging in the testfile. This PR makes it easy to see what is unique to each of the new tests and adds logging.

@jonatack jonatack force-pushed the refactor-rpc_signrawtransaction branch from 66e9be8 to 5390ee1 Compare April 6, 2020 21:28
@fanquake fanquake added the Tests label Apr 6, 2020
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.

ACK modulo nits
Deduplication and better logging are always good 👍

For other reviewers, I suggest looking at the refactor diff with a larger number of lines of context via the -U option (at a first glance it looks like the signing part has been removed, as one doesn't see the whole newly introduced function verify_txn_with_witness_script() to the end), e.g.
git show -U20 269b664ced

@jonatack jonatack force-pushed the refactor-rpc_signrawtransaction branch from 5390ee1 to 9cdddae Compare April 12, 2020 10:12
@jonatack
Copy link
Member Author

Thanks for reviewing, @theStack. I've updated with both of your suggestions.

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.

ACK 9cdddae 🥚 🐰

@maflcko maflcko merged commit e28e535 into bitcoin:master Apr 13, 2020
@jonatack jonatack deleted the refactor-rpc_signrawtransaction branch April 13, 2020 15:23
Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Jan 15, 2021
Summary:
This is a partial backport of Core  [[bitcoin/bitcoin#18545 | PR18545]]
bitcoin/bitcoin@9cdddae

Test Plan: test/functional/test_runner.py rpc_signrawtransaction

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D8925
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
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.

5 participants