Skip to content

Commit fd3c1eb

Browse files
Simplify mnemonic retrieval
1 parent 9894f47 commit fd3c1eb

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/wallet/interfaces.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -565,15 +565,7 @@ class WalletImpl : public Wallet
565565
}
566566
}
567567

568-
SecureString ssMnemonic;
569-
SecureString ssMnemonicPassphrase;
570-
if (!hdChainCurrent.GetMnemonic(ssMnemonic, ssMnemonicPassphrase)) {
571-
return false;
572-
}
573-
574-
mnemonic_out = ssMnemonic;
575-
mnemonic_passphrase_out = ssMnemonicPassphrase;
576-
return true;
568+
return hdChainCurrent.GetMnemonic(mnemonic_out, mnemonic_passphrase_out);
577569
}
578570
}
579571
std::unique_ptr<Handler> handleUnload(UnloadFn fn) override

0 commit comments

Comments
 (0)