| 203 | } |
| 204 | |
| 205 | void ImportAddress(const CTxDestination& dest, const std::string& strLabel) |
| 206 | { |
| 207 | CScript script = GetScriptForDestination(dest); |
| 208 | ImportScript(script, strLabel, false); |
| 209 | // add to address book or update label |
| 210 | if (IsValidDestination(dest)) |
| 211 | pwalletMain->SetAddressBook(dest, strLabel, "receive"); |
| 212 | } |
| 213 | |
| 214 | UniValue importaddress(const UniValue& params, bool fHelp) |
| 215 | { |
no test coverage detected