Repository navigation
Conversation
theStack
force-pushed
the
202112-test-use_MiniWallet_for_rpc_scantxoutset
branch
2 times, most recently
from
December 26, 2021 02:36
3e82f71 to
5df1496
Compare
Contributor
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsNo conflicts as of last run. |
…ress types This serves as a replacement for the getnewaddress RPC if no wallet is available. In addition to the address, it also returns the corresponding public key and output script (scriptPubKey).
Works only with legacy addresses (Base58Check) right now.
theStack
force-pushed
the
202112-test-use_MiniWallet_for_rpc_scantxoutset
branch
from
December 26, 2021 11:38
5df1496 to
a58aea0
Compare
Contributor
Author
|
Rebased on master. |
w0xlt
approved these changes
Dec 26, 2021
maflcko
approved these changes
Dec 26, 2021
maflcko
left a comment
Member
There was a problem hiding this comment.
Nice. Looks very good.
Left some questions on the third commit for unrelated lines.
This test can now be run even with the Bitcoin Core wallet disabled.
theStack
force-pushed
the
202112-test-use_MiniWallet_for_rpc_scantxoutset
branch
from
December 26, 2021 14:54
a58aea0 to
e844115
Compare
Contributor
Author
|
Force-pushed with most of the suggestions by MarcoFalke (#23866 (review)):
|
w0xlt
approved these changes
Dec 26, 2021
Fabcien
pushed a commit
to Bitcoin-ABC/bitcoin-abc
that referenced
this pull request
Dec 2, 2022
Summary: Backport of [[bitcoin/bitcoin#23866 | core#23866]]. Depends on D12733. Test Plan: With and without wallet: ./test/functional/test_runner.py rpc_scantxoutset Reviewers: #bitcoin_abc, sdulfari Reviewed By: #bitcoin_abc, sdulfari Differential Revision: https://reviews.bitcoinabc.org/D12734
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR enables one more of the non-wallet functional tests (rpc_scantxoutset.py) to be run even with the Bitcoin Core wallet disabled by using the MiniWallet instead, as proposed in #20078 and #23858 (comment) more recently.
Reviewer's guide:
getnewdestinationis introduced which allows to create addresses with the common address format types ('legacy', 'p2sh-segwit' and 'bech32'), but also additionally returns the corresponding pubkey and output script.address_to_scriptpubkeyis introduced. It only supports legacy addresses (Base58Check) so far, which is sufficient for the scantxoutset test.from_nodeto MiniWallet'ssend_tomethod, another test-internal helpersendtodestinationis introduced which supports specifying the destination both as outputscript or as address.