-
Notifications
You must be signed in to change notification settings - Fork 36.5k
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
dumpwallet behavior #9564
Comments
More documentation is always good. Hence the fact that the Console/RPC interface if for experience users and (maybe) most of them are aware that a dump-to-filename command better gets supplied with a full absolute path. |
Rebased-From: 9f82134
It appears that this was addressed in #9740, so this can be closed. |
@MarcoFalke it seems this should be reopened as doesn't seem fixed (at last not on Linux; originally I reported this with 0.13.2 for Windows). Current help:
Below we can see that relative path isn't relative to bitcoind, but to "user's home directory"
Trying to use
In my case:
|
I'm on OSX and I can't get If I try a home-relative path, an absolute path, just a filename, in quotes, not in quotes etc. Absolutely nothing results in anything but |
The current help on OSX is
|
bitcoin-cli doesn't even come with bitcoin-Qt on OSX. |
Works for me on OSX.
Bitcoin-cli is not directly necessary when using bitcoin-Qt, because there is the internal QT based console. |
@unsystemizer I think you'd have to start bitcoind from In light of this, the path should either be normalized with a base path of the data dir (wallet dir) or the call should just reject all non-absolute paths. |
Ok, I got past the error I was getting by running as root. Not sure why that should be necessary. I also ran the command to unlock my wallet first. However, since the wallet is unencryted this shouldn't be necessary. In any case I confirmed that it worked finally, so probably no issues on OSX other than documentation perhaps. Thanks for the help. |
@MarcoFalke
But I no such file My Am I always supposed to save the dump file into |
Please just use absolute paths if relatives paths don't work for you. I don't think we can fix relative paths in a way to make everyone happy. |
fa50170 wallet: Recommned absolute path for dumpwallet (MarcoFalke) Pull request description: Avoids misunderstandings such as #9564 ACKs for top commit: kristapsk: utACK fa50170 Tree-SHA512: f675ef607992857ffeb556a2945b5436a70b39c5d83f05a8be15a6fccc84cbe9d03e52f8239e28d159e41ed7c6f119b7a38e8ab327029f04609f63c559c12c49
fa50170 wallet: Recommned absolute path for dumpwallet (MarcoFalke) Pull request description: Avoids misunderstandings such as bitcoin#9564 ACKs for top commit: kristapsk: utACK fa50170 Tree-SHA512: f675ef607992857ffeb556a2945b5436a70b39c5d83f05a8be15a6fccc84cbe9d03e52f8239e28d159e41ed7c6f119b7a38e8ab327029f04609f63c559c12c49
164019d Add dumpwallet output test (aideca) 9f82134 Add friendly output to dumpwallet refs bitcoin#9564 (aideca) Tree-SHA512: 913fcf18d42eebe34173f1f2519973494b1ad2d86d125ff4bf566d6c64aa501c02f8831e6f44812cd87a46916f61c6f510146af406865b31856d8336c173569f
164019d Add dumpwallet output test (aideca) 9f82134 Add friendly output to dumpwallet refs bitcoin#9564 (aideca) Tree-SHA512: 913fcf18d42eebe34173f1f2519973494b1ad2d86d125ff4bf566d6c64aa501c02f8831e6f44812cd87a46916f61c6f510146af406865b31856d8336c173569f
164019d Add dumpwallet output test (aideca) 9f82134 Add friendly output to dumpwallet refs bitcoin#9564 (aideca) Tree-SHA512: 913fcf18d42eebe34173f1f2519973494b1ad2d86d125ff4bf566d6c64aa501c02f8831e6f44812cd87a46916f61c6f510146af406865b31856d8336c173569f
164019d Add dumpwallet output test (aideca) 9f82134 Add friendly output to dumpwallet refs bitcoin#9564 (aideca) Tree-SHA512: 913fcf18d42eebe34173f1f2519973494b1ad2d86d125ff4bf566d6c64aa501c02f8831e6f44812cd87a46916f61c6f510146af406865b31856d8336c173569f
In v0.13:
dumpwallet
"dumps all wallet keys in a human-readable format." (according to console help).First, it's hard to tell where it dumps them.
I executed the action and couldn't find the file. Another way to look at this is "I executed the action and nothing happened".
Well, it turns out it did work, but the file ended up in the Bitcoin "root" directory (for me,
c:\Bitcoin
).I bet some users would think that the command simply didn't work and you can see where it goes from there.
Second, the action behavior isn't particularly intuitive.
For example, I'm in
E:\backup
and I runc:\bitcoin\bin\bitcoin-cli.exe dumpwallet wallet.txt
I think this shouldn't dump the wallet to c:\bitcoin\wallet.txt.
dumpwallet e:\backup\wallet.txt
works as expected (both from debug console and from the CLI).This could be classified as a doco bug (e.g. change "The filename" to "The full path and filename"), or it could be improved in the code.
OS: English Windows 10 x64.
The text was updated successfully, but these errors were encountered: