8000 Using absolute path for dumpwallet rpc by levonpetrosyan93 · Pull Request #1047 · firoorg/firo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Using absolute path for dumpwallet rpc #1047

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

Merged
merged 3 commits into from
Jul 11, 2021
Merged

Conversation

levonpetrosyan93
Copy link
Contributor

This PR fixes dumpwallet path issues, when on some platforms dump is not saved at correct directory.
It also returns the path as an output.

a-bezrukov
a-bezrukov previously approved these changes Jun 28, 2021
@levonpetrosyan93 levonpetrosyan93 added this to the v0.14.7.1 milestone Jun 28, 2021
a-bezrukov
a-bezrukov previously approved these changes Jul 8, 2021
@@ -693,8 +693,12 @@ UniValue dumpwallet(const JSONRPCRequest& request)

EnsureWalletIsUnlocked(pwallet);

boost::filesystem::path filePath = request.params[0].get_str();
filePath = boost::filesystem::absolute(filePath);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest using canonical instead of absolute if you really want to show users where their file ends up. E.g. /home/user/mydir/../somedir/wallet.dump isn't something user can quickly parse

@levonpetrosyan93 levonpetrosyan93 merged commit dc9620a into master Jul 11, 2021
@levonpetrosyan93 levonpetrosyan93 deleted the dumpwallet_path branch July 11, 2021 14:39
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.

4 participants
0