aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpc/backup.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-01-10 23:55:31 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-01-11 00:00:00 +0200
commit3a45dc36a663ea67f13e7d5c413518b9385ec594 (patch)
treeca82b645de164ddd4b2a5c0bf58b902361ec8f0b /src/wallet/rpc/backup.cpp
parent213172c7348091794b173c2edf5f7f3bbe010912 (diff)
downloadbitcoin-3a45dc36a663ea67f13e7d5c413518b9385ec594.tar.xz
Change type of `backup_file` parameter in RestoreWallet/restoreWallet
`fs::path` looks more native than `std::string` for a parameter which represents a backup file. This change eliminates back-and-forth type conversions.
Diffstat (limited to 'src/wallet/rpc/backup.cpp')
-rw-r--r--src/wallet/rpc/backup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpc/backup.cpp b/src/wallet/rpc/backup.cpp
index 0029d1b09c..b77d3af3c6 100644
--- a/src/wallet/rpc/backup.cpp
+++ b/src/wallet/rpc/backup.cpp
@@ -1887,7 +1887,7 @@ RPCHelpMan restorewallet()
bilingual_str error;
std::vector<bilingual_str> warnings;
- const std::shared_ptr<CWallet> wallet = RestoreWallet(context, fs::PathToString(backup_file), wallet_name, load_on_start, status, error, warnings);
+ const std::shared_ptr<CWallet> wallet = RestoreWallet(context, backup_file, wallet_name, load_on_start, status, error, warnings);
HandleWalletError(wallet, status, error);