question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Refactor Seed+SCB recovery/rescan

See original GitHub issue

Recovering from seed (& SCB) needs a refactor. The idea is here to put the lnd & cl into a recovery mode where they are the started everytime with resetting on-chain transaction history and going into rescan when booted/restarted until they run trhu one time in a row and then get set back to normal mode.

So the scripts lnd.backup.sh & cl.backup.sh with get an recovery option for mainnet/testnet/signet and the background process will check for the recovery to finish.

Notes for lnd:

lncli getrecoveryinfo 
lnd --reset-wallet-transactions

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
rootzollcommented, Jan 23, 2022

When running the LND-REPAIR and REST with SEED+SCB I got the following error message after uploading the SCB:

WALLET --> UNLOCK WALLET - SCAN 0
WALLET --> SEED + SCB
StatusCode.UNKNOWN
/dev/fd/63: line 4: /home/admin/.lnd/data/chain/bitcoin/mainnet/admin.macaroon: Permission denied
lnd-wallet-seed+scb lnd.initwallet.py scb returned error /home/admin/config.scripts/lnd.initwallet.py scb mainnet ... --> RPCError RestoreChanBackupRequest + the RPC server is in the process of starting up, but not yet ready to accept calls

and as for first test … the “rescan” afterthis does not finish - will keep runnnig over night to see results.

1reaction
rootzollcommented, Jan 20, 2022

The problem is that the macaroon owner is bitcoin:bitcoin and root (doing the background scan) is not in group bitcoin. Will add root user to group bitcoin in beginning of background.scan script.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I recover a wallet using the mnemonic seed?
Go to the folder containing monero-wallet-cli and run "./monero-wallet-cli --restore-deterministic-wallet", entering your mnemonic seed when prompted. NOTE that ...
Read more >
Refactoring programs - Rocket Software Documentation
Refactoring changes the internal structure of a program without modifying its external behavior or existing functionality. You usually refactor a program to ...
Read more >
To Rehost or Refactor - LinkedIn
You still need to provide local device support, printing, scanning and lots more. Your big footprint may move, but you still have a...
Read more >
A topological refactoring design strategy yields highly stable ...
Here, we demonstrate the utility of a topological refactoring strategy to design novel granulopoietic proteins starting from the ...
Read more >
BTCRecover
BTCRecover is an open source wallet password and seed recovery tool. ... For wallet password or passphrase recovery, it is primarily useful if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found