diff --git a/ch03.asciidoc b/ch03.asciidoc index 8908050c..0d2427ce 100644 --- a/ch03.asciidoc +++ b/ch03.asciidoc @@ -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 $ ---- -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] ---- @@ -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+ -((("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 $ @@ -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: -[source,bash] + ---- $ bitcoin-cli importwallet wallet.backup $