]> git.codecow.com Git - libnemo.git/commitdiff
Log when click activation ends when disconnecting Ledger. Blank out local copy of...
authorChris Duncan <chris@zoso.dev>
Tue, 23 Sep 2025 14:27:38 +0000 (07:27 -0700)
committerChris Duncan <chris@zoso.dev>
Tue, 23 Sep 2025 14:27:38 +0000 (07:27 -0700)
src/lib/ledger.ts

index 2de4ffc27d3d0ad3cfa5abaad95a7f37c45cc9e0..a5bcd9722501ef3e87b1fd9586ff71a1e09b0e79 100644 (file)
@@ -219,6 +219,7 @@ export class Ledger {
                                console.warn('Ledger.disconnect()', err)
                        } finally {
                                await new Promise(r => setTimeout(r, 5000))
+                               console.log('Transient user activation period timed out')
                        }
                })
        }
@@ -316,6 +317,7 @@ export class Ledger {
        static async verify (mnemonic: string): Promise<boolean>
        static async verify (secret: string): Promise<boolean> {
                const testWallet = await Wallet.load('BIP-44', '', secret)
+               secret = ''
                await testWallet.unlock('')
                const testAccount = await testWallet.account(0)
                const testOpenBlock = await new Block(testAccount.address, '0', testAccount.publicKey, testAccount.address)