Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/recover wallet #105

Merged
merged 7 commits into from
Mar 26, 2019
Merged

Feature/recover wallet #105

merged 7 commits into from
Mar 26, 2019

Conversation

Jwata
Copy link
Contributor

@Jwata Jwata commented Mar 22, 2019

Recovery steps

Create wallet

dlccli wallets create \                                                                                                                                                                                          
    --conf ./conf/bitcoin.testnet.conf \
    --walletdir ./wallets/testnet \
    --walletname "alice_recover" \
    --privpass "priv_alice" \
    --pubpass "pub_alice" \
    —seed 791729bd1e8dbdc31d0603f9116ab18bd701e02c78094b262ffe73af837a0446

Import address to temporal DLC wallet

dlccli wallets addresses import \
    --conf ./conf/bitcoin.testnet.conf \
    --walletdir ./wallets/testnet \
    --walletname "alice_recover" \
    --pubpass "pub_alice" \
    --address tb1qwwrtlm034ecmauf5x5ktzjw8zz0v7wufqpmccs

Import address to bitcoind

# rescan=true by default
bitcoin-cli -conf=bitcoin.testnet.conf -datadir=./bitcoind \
    importaddress tb1qwwrtlm034ecmauf5x5ktzjw8zz0v7wufqpmccs

Check balance

dlccli wallets balance \
    --conf ./conf/bitcoin.testnet.conf \
    --walletdir ./wallets/testnet \
    --walletname "alice_recover" \
    --pubpass "pub_alice"

@Jwata Jwata merged commit 7758fe3 into master Mar 26, 2019
@Jwata Jwata deleted the feature/recover-wallet branch March 26, 2019 03:24
@Jwata Jwata removed the in progress label Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant