MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / DecodeDumpString

Function DecodeDumpString

src/wallet/rpcdump.cpp:54–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54static std::string DecodeDumpString(const std::string &str) {
55 std::stringstream ret;
56 for (unsigned int pos = 0; pos < str.length(); pos++) {
57 unsigned char c = str[pos];
58 if (c == '%' && pos+2 < str.length()) {
59 c = (((str[pos+1]>>6)*9+((str[pos+1]-'0')&15)) << 4) |
60 ((str[pos+2]>>6)*9+((str[pos+2]-'0')&15));
61 pos += 2;
62 }
63 ret << c;
64 }
65 return ret.str();
66}
67
68static bool GetWalletAddressesForKey(CWallet * const pwallet, const CKeyID &keyid, std::string &strAddr, std::string &strLabel)
69{

Callers 1

importwalletFunction · 0.85

Calls 1

strMethod · 0.80

Tested by

no test coverage detected