MCPcopy Create free account
hub / github.com/LUX-Core/lux / ImportAddress

Function ImportAddress

src/rpcdump.cpp:205–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void 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
214UniValue importaddress(const UniValue& params, bool fHelp)
215{

Callers 3

ImportScriptFunction · 0.85
importaddressFunction · 0.85
importpubkeyFunction · 0.85

Calls 4

GetScriptForDestinationFunction · 0.85
ImportScriptFunction · 0.85
IsValidDestinationFunction · 0.85
SetAddressBookMethod · 0.80

Tested by

no test coverage detected