Skip to content

Commit fa9ef2c

Browse files
committed
Remove an apparently unnecessary conversion
CScript -> CScriptID -> ScriptHash is unnecessary because ScriptHash and CScriptID do the same thing.
1 parent 966a22d commit fa9ef2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/rpcdump.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ UniValue importaddress(const JSONRPCRequest& request)
297297
pwallet->ImportScripts(scripts, 0 /* timestamp */);
298298

299299
if (fP2SH) {
300-
scripts.insert(GetScriptForDestination(ScriptHash(CScriptID(redeem_script))));
300+
scripts.insert(GetScriptForDestination(ScriptHash(redeem_script)));
301301
}
302302

303303
pwallet->ImportScriptPubKeys(strLabel, scripts, false /* have_solving_data */, true /* apply_label */, 1 /* timestamp */);

0 commit comments

Comments
 (0)