Skip to content

Conversation

@ayush933
Copy link
Contributor

@ayush933 ayush933 commented Jun 13, 2022

This PR enables one of the non-wallet functional tests (feature_nulldummy.py) to be run even with the Bitcoin Core wallet disabled.

Commit 1: removes wallet dependency and test_runner.py is edited to make sure the test only runs once.
Commit 2: the functions create_transaction() and create_raw_transaction() in blocktools.py are no longer needed and hence removed.

@fanquake fanquake added the Tests label Jun 13, 2022
Copy link
Member

@maflcko maflcko left a comment

Choose a reason for hiding this comment

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

Looks good. Left an idea

@laanwj
Copy link
Member

laanwj commented Jun 14, 2022

Concept ACK, thanks for working on disentangling more tests from the wallet.

@ayush933 ayush933 force-pushed the nulldummy_no_wallet branch from b02411d to a8fe321 Compare June 14, 2022 13:17
@ayush933 ayush933 force-pushed the nulldummy_no_wallet branch from a8fe321 to 9a783a9 Compare June 15, 2022 11:22
Copy link
Contributor

@kouloumos kouloumos left a comment

Choose a reason for hiding this comment

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

ACK 9a783a9fd76ee5350d64ed1ed5b658c530913653 with some minor comments that i believe could increase readability.

I was also thinking that using the MiniWallet could potentially simplify the test and I tried to validate my intuition, but it seems that the changes needed do not justify the idea.

@DrahtBot
Copy link
Contributor

DrahtBot commented Jun 21, 2022

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

No conflicts as of last run.

This test can now be run even with the Bitcoin Core wallet disabled.
@ayush933 ayush933 force-pushed the nulldummy_no_wallet branch from 9a783a9 to eec23da Compare June 24, 2022 12:27
the functions `create_transaction()` and `create_raw_transaction()` were no longer used hence removed.
@ayush933
Copy link
Contributor Author

Thanks a lot @MarcoFalke and @kouloumos for the thorough reviews.
Addressed the reviews and made the necessary changes.

@kouloumos
Copy link
Contributor

re-ACK 50ba669, all comments have been addressed.

@maflcko maflcko merged commit 5d68d68 into bitcoin:master Jun 30, 2022
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jun 30, 2022
…dummy.py

50ba669 remove unused functions (Ayush Sharma)
eec23da test: remove wallet dependency from feature_nulldummy.py (Ayush Sharma)

Pull request description:

  This PR enables one of the non-wallet functional tests (`feature_nulldummy.py`) to be run even with the Bitcoin Core wallet disabled.

  Commit 1: removes wallet dependency and `test_runner.py` is edited to make sure the test only runs once.
  Commit 2: the functions `create_transaction()` and `create_raw_transaction()` in `blocktools.py` are no longer needed and hence removed.

ACKs for top commit:
  kouloumos:
    re-ACK 50ba669, all comments have been addressed.

Tree-SHA512: 3bc3d2766e53dba3d56a03f2c476442608ac693f51d84f4632a22a2cf169bc02c10bf92b676f7d57acb4f0ad86f307d37ab63f936b44b3585ee3c9d08cd0335f
@bitcoin bitcoin locked and limited conversation to collaborators Jun 30, 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.

6 participants