Skip to content

Commit 25ee29b

Browse files
committed
Cleanup: dumpwallet never empty str check removed + duplicated line clean.
1 parent d0325eb commit 25ee29b

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/wallet/rpcdump.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -470,10 +470,6 @@ UniValue dumpwallet(const UniValue& params, bool fHelp)
470470
} else {
471471
file << "change=1";
472472
}
473-
474-
if (strAddr.empty()) // If empty, encode the address as a regular address.
475-
strAddr = CBitcoinAddress(keyid).ToString();
476-
477473
file << strprintf(" # addr=%s%s\n", strAddr, (metadata.HasKeyOrigin() ? " hdkeypath="+metadata.key_origin.pathToString() : ""));
478474
}
479475
}

src/wallet/rpcwallet.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2929,7 +2929,6 @@ UniValue getwalletinfo(const UniValue& params, bool fHelp)
29292929
" \"keypoolsize\": xxxx, (numeric) how many new keys are pre-generated (only counts external keys)\n"
29302930
" \"keypoolsize_hd_internal\": xxxx, (numeric) how many new keys are pre-generated for internal use (used for change outputs, only appears if the wallet is using this feature, otherwise external keys are used)\n"
29312931
" \"keypoolsize_hd_staking\": xxxx, (numeric) how many new keys are pre-generated for staking use (used for staking contracts, only appears if the wallet is using this feature)\n"
2932-
" \"unlocked_until\": ttt, (numeric) the UNIX epoch time until which the wallet is unlocked for transfers, or 0 if the wallet is locked\n"
29332932
" \"unlocked_until\": ttt, (numeric) the timestamp in seconds since epoch (midnight Jan 1 1970 GMT) that the wallet is unlocked for transfers, or 0 if the wallet is locked\n"
29342933
" \"paytxfee\": x.xxxx (numeric) the transaction fee configuration, set in PIV/kB\n"
29352934
" \"hdseedid\": \"<hash160>\" (string, optional) the Hash160 of the HD seed (only present when HD is enabled)\n"

0 commit comments

Comments
 (0)