mirror of
https://github.com/bitcoinbook/bitcoinbook
synced 2024-12-23 15:18:11 +00:00
Made changes to ch03.asciidoc
This commit is contained in:
parent
e1521b2363
commit
a23415485e
@ -433,14 +433,14 @@ $ bitcoin-cli getinfo
|
|||||||
$
|
$
|
||||||
----
|
----
|
||||||
|
|
||||||
To unlock the wallet, we issue the +walletpassphrase+ command that takes two parameters—the password and a number of seconds until the wallet is locked again automatically (a time counter):
|
To unlock the wallet, issue the +walletpassphrase+ command, which takes two parameters—the password and a number of seconds until the wallet is locked again automatically (a time counter):
|
||||||
|
|
||||||
----
|
----
|
||||||
$ bitcoin-cli walletpassphrase foo 360
|
$ bitcoin-cli walletpassphrase foo 360
|
||||||
$
|
$
|
||||||
----
|
----
|
||||||
|
|
||||||
We confirm the wallet is unlocked and see the timeout by running +getinfo+ again:
|
You can confirm the wallet is unlocked and see the timeout by running +getinfo+ again:
|
||||||
|
|
||||||
[source,bash]
|
[source,bash]
|
||||||
----
|
----
|
||||||
@ -458,13 +458,13 @@ $ bitcoin-cli getinfo
|
|||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
==== Wallet Backup, Plain-text Dump and Restore
|
==== Wallet Backup, Plain-text Dump, and Restore
|
||||||
|
|
||||||
Commands: +backupwallet+, +importwallet+, +dumpwallet+
|
Commands: +backupwallet+, +importwallet+, +dumpwallet+
|
||||||
|
|
||||||
((("backups","of wallets")))((("backupwallet command (bitcoin-cli)")))((("bitcoin-cli command line helper","backupwallet command")))((("bitcoin-cli command line helper","dumpwallet command")))((("bitcoin-cli command line helper","importwallet command")))((("dumpwallet command (bitcoin-cli)")))((("importwallet command (bitcoin-cli)")))((("wallets","backing up")))((("wallets","dumping into plain text")))((("wallets","restoring")))Next, we will practice creating a wallet backup file and then restoring the wallet from the backup file. Use the +backupwallet+ command to backup, providing the filename as the parameter. Here we back up the wallet to the file _wallet.backup_:
|
((("backups","of wallets")))((("backupwallet command (bitcoin-cli)")))((("bitcoin-cli command line helper","backupwallet command")))((("bitcoin-cli command line helper","dumpwallet command")))((("bitcoin-cli command line helper","importwallet command")))((("dumpwallet command (bitcoin-cli)")))((("importwallet command (bitcoin-cli)")))((("wallets","backing up")))((("wallets","dumping into plain text")))((("wallets","restoring")))Next, we will practice creating a wallet backup file and then restoring the wallet from the backup file. Use the +backupwallet+ command to back up, providing the filename as the parameter. Here we back up the wallet to the file _wallet.backup_:
|
||||||
|
|
||||||
|
|
||||||
[source,bash]
|
|
||||||
----
|
----
|
||||||
$ bitcoin-cli backupwallet wallet.backup
|
$ bitcoin-cli backupwallet wallet.backup
|
||||||
$
|
$
|
||||||
@ -472,7 +472,7 @@ $
|
|||||||
|
|
||||||
Now, to restore the backup file, use the +importwallet+ command. If your wallet is locked, you will need to unlock it first (see +walletpassphrase+ in the preceding section) in order to import the backup file:
|
Now, to restore the backup file, use the +importwallet+ command. If your wallet is locked, you will need to unlock it first (see +walletpassphrase+ in the preceding section) in order to import the backup file:
|
||||||
|
|
||||||
[source,bash]
|
|
||||||
----
|
----
|
||||||
$ bitcoin-cli importwallet wallet.backup
|
$ bitcoin-cli importwallet wallet.backup
|
||||||
$
|
$
|
||||||
|
Loading…
Reference in New Issue
Block a user