Remove an apparently unnecessary conversion
CScript -> CScriptID -> ScriptHash is unnecessary because ScriptHash and CScriptID do the same thing.
This commit is contained in:
parent
966a22d859
commit
fa9ef2cdbe
1 changed files with 1 additions and 1 deletions
|
@ -297,7 +297,7 @@ UniValue importaddress(const JSONRPCRequest& request)
|
|||
pwallet->ImportScripts(scripts, 0 /* timestamp */);
|
||||
|
||||
if (fP2SH) {
|
||||
scripts.insert(GetScriptForDestination(ScriptHash(CScriptID(redeem_script))));
|
||||
scripts.insert(GetScriptForDestination(ScriptHash(redeem_script)));
|
||||
}
|
||||
|
||||
pwallet->ImportScriptPubKeys(strLabel, scripts, false /* have_solving_data */, true /* apply_label */, 1 /* timestamp */);
|
||||
|
|
Loading…
Reference in a new issue