mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-12-03 12:24:27 +01:00
clarify bip32 derivation paths (#800)
Co-authored-by: ardocrat <ardocrat@gri.mw>
This commit is contained in:
committed by
GitHub
co-authored by
ardocrat
parent
18da793ace
commit
f585c70eba
@@ -57,7 +57,11 @@ where
|
||||
C: NodeClient,
|
||||
K: Keychain,
|
||||
{
|
||||
keys::accounts(w)
|
||||
let mut accounts = keys::accounts(w)?;
|
||||
accounts.sort_by(|a, b| a.path.cmp(&b.path));
|
||||
// Put active account on top.
|
||||
accounts.sort_by_key(|k| k.path != w.parent_key_id());
|
||||
Ok(accounts)
|
||||
}
|
||||
|
||||
/// new account path
|
||||
|
||||
Reference in New Issue
Block a user