Skip to content

Commit

Permalink
feat(cli): Log message in start when the wallet is locked (#5336)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanjadvani committed Sep 4, 2024
1 parent 08c1066 commit 8a949b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ironfish-cli/src/commands/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,12 @@ export default class Start extends IronfishCommand {
await this.firstRun(node)
}

const encrypted = await node.wallet.accountsEncrypted()
if (encrypted) {
this.log('Your wallet is encrypted. Run ironfish wallet:unlock to access your accounts')
this.log()
}

await node.start()
this.node = node

Expand Down

0 comments on commit 8a949b3

Please sign in to comment.