Skip to content

Commit

Permalink
Update wallet.js
Browse files Browse the repository at this point in the history
  • Loading branch information
f-r00t authored Feb 19, 2024
1 parent 7e99ffc commit 77fea34
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions utils/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,14 @@ async function openWallet(daemon) {
* @returns {String}
*/
async function saveWallet(wallet) {
log.info(getTimestamp() + ' INFO: Saving wallet...')
try {
const encrypted_wallet = await wallet.encryptWalletToString('hugin')
const mnemonicSeed = await wallet.getMnemonicSeed()
const walletExists = await walletExistsInDb();
} catch (err) {
log.info(getTimestamp() + 'Error:' + err);
}

if (!walletExists) {
log.info(getTimestamp() + ' INFO: Wallet does not exist. Creating and saving wallet to db...')
Expand Down

0 comments on commit 77fea34

Please sign in to comment.