-
Notifications
You must be signed in to change notification settings - Fork 3
fix:adjust default paths and gap limits to match android/iOS behavior #156
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: v0.40-dev
Are you sure you want to change the base?
Changes from all commits
9f845aa
0f0978e
cc8d49c
bbf43a9
971be53
7fc5df7
430da5b
3cdd496
7bec305
a282394
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -306,9 +306,9 @@ fn test_transaction_affects_multiple_accounts() { | |
}; | ||
wallet.add_account(account_type, network, None).expect("Failed to add account to wallet"); | ||
|
||
// Add a BIP32 account | ||
// Add another BIP32 account | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the first one was BIP44 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To maintain compatibility with old wallets, BIP32 was added to Default. That is why these tests were updated. However, if we wanted Default to not have BIP32 (for new wallets), but have a another enum item that does contain BIP32 for restoring a wallet (as in the test wallet we are using), then this test could be returned to its original code. And I could add a |
||
let account_type = AccountType::Standard { | ||
index: 0, | ||
index: 1, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. okay, but I don't think this matters. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It matters because the Default wallet already contains a BIP32 account 0, based on my changes. See above comment. |
||
standard_account_type: StandardAccountType::BIP32Account, | ||
}; | ||
wallet.add_account(account_type, network, None).expect("Failed to add account to wallet"); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the doc comment to clarify deviation from BIP44.
The doc comment states this follows the "BIP44 recommendation," but BIP44 actually recommends a gap limit of 20. The value of 30 was chosen based on testing with iOS/Android wallet compatibility (as discussed in the PR comments).
Consider updating the comment to reflect this:
🤖 Prompt for AI Agents