Skip to content

Commit 8a949b3

Browse files
authored
feat(cli): Log message in start when the wallet is locked (#5336)
1 parent 08c1066 commit 8a949b3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ironfish-cli/src/commands/start.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,12 @@ export default class Start extends IronfishCommand {
246246
await this.firstRun(node)
247247
}
248248

249+
const encrypted = await node.wallet.accountsEncrypted()
250+
if (encrypted) {
251+
this.log('Your wallet is encrypted. Run ironfish wallet:unlock to access your accounts')
252+
this.log()
253+
}
254+
249255
await node.start()
250256
this.node = node
251257

0 commit comments

Comments
 (0)