diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 24 |
1 files changed, 24 insertions, 0 deletions
| @@ -98,6 +98,30 @@ The second point is the pre-BIP32 problem that deterministic wallets were | |||
| 98 | invented to solve; see [#47](https://github.com/Bitflash-sh/bitflash/issues/47). | 98 | invented to solve; see [#47](https://github.com/Bitflash-sh/bitflash/issues/47). |
| 99 | Until that lands, repetition is the only defence. | 99 | Until that lands, repetition is the only defence. |
| 100 | 100 | ||
| 101 | ### When wallet.dat itself will not open | ||
| 102 | |||
| 103 | Everything above still runs through Berkeley DB. If the database is the thing | ||
| 104 | that is broken — a build that will not read it, a file truncated by a bad copy, | ||
| 105 | an environment beyond recovery — the keys are usually still fine, and you can | ||
| 106 | take them out as text: | ||
| 107 | |||
| 108 | ``` | ||
| 109 | bitflash -dumpwallet=/path/to/keys.txt | ||
| 110 | bitflash -importwallet=/path/to/keys.txt # into any wallet, on any machine | ||
| 111 | ``` | ||
| 112 | |||
| 113 | One key per line with its address and label, no database and no environment. | ||
| 114 | Importing skips keys the wallet already holds, so running it twice is safe, and | ||
| 115 | an unreadable line is reported and stepped over rather than abandoning the rest. | ||
| 116 | Restart the node afterwards so it scans the chain for transactions belonging to | ||
| 117 | the new keys. | ||
| 118 | |||
| 119 | **The dump is your private keys in the clear.** Anyone who reads that file can | ||
| 120 | spend those coins. It is written owner-only on Linux and macOS; on Windows it | ||
| 121 | inherits whatever the containing folder allows, so choose the folder carefully. | ||
| 122 | Move it somewhere safe and delete the copy. `-dumpwallet` will not overwrite an | ||
| 123 | existing file. | ||
| 124 | |||
| 101 | --- | 125 | --- |
| 102 | 126 | ||
| 103 | ## Mining | 127 | ## Mining |