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.
Export wallets with BIP 389 multipath descriptors for both receive and change branches #2534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
Export wallets with BIP 389 multipath descriptors for both receive and change branches #2534
Changes from all commits
c796b6692837af97973846f16ffbf4932d83890b440a969d1File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Check failure on line 394 in tests/test_wallet.py
tests/test_wallet.py#L394
Raw output
funded_hot_wallet_1 = <Wallet name=a_hotwallet_948909 alias=a_hotwallet_948909> @pytest.mark.slow def test_account_map_combined_descriptor(funded_hot_wallet_1: Wallet): """ Test that account_map property returns a combined descriptor with <0;1> syntax instead of just the receive descriptor with /0/* When exporting wallets, only the receive descriptor /0/* was included, but it should include both receive and change addresses using multipath descriptors. """ wallet = funded_hot_wallet_1 # Parse the account_map JSON account_map_dict = json.loads(wallet.account_map) # Check that descriptor key exists assert "descriptor" in account_map_dict descriptor_str = account_map_dict["descriptor"] # The descriptor should use BIP 389 multipath syntax <0;1> # not just the receive path /0/* > assert "<0;1>" in descriptor_str, ( f"Expected descriptor with <0;1> multipath syntax, " f"but got: {descriptor_str}" ) E AssertionError: Expected descriptor with <0;1> multipath syntax, but got: wpkh([915227ed/84h/1h/0h]tpubDCFZjEWPiCL57asbtmeSTMq2GW9GnBfK7f4MjKtVsRux3nC66uefXd3SPqaQYtRmPg6Aacqj2R2qQ1BwCtm6xmr9zqJSLnyhpZQgpfMCbgx/{0,1}/*)#yxak3f5f E assert '<0;1>' in 'wpkh([915227ed/84h/1h/0h]tpubDCFZjEWPiCL57asbtmeSTMq2GW9GnBfK7f4MjKtVsRux3nC66uefXd3SPqaQYtRmPg6Aacqj2R2qQ1BwCtm6xmr9zqJSLnyhpZQgpfMCbgx/{0,1}/*)#yxak3f5f' tests/test_wallet.py:394: AssertionErrorUh oh!
There was an error while loading. Please reload this page.