Changeset View
Changeset View
Standalone View
Standalone View
src/script/sign.cpp
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | switch (whichTypeRet) { | ||||
CPubKey(vSolutions[0]), scriptPubKey)) { | CPubKey(vSolutions[0]), scriptPubKey)) { | ||||
return false; | return false; | ||||
} | } | ||||
ret.push_back(std::move(sig)); | ret.push_back(std::move(sig)); | ||||
return true; | return true; | ||||
case TX_PUBKEYHASH: { | case TX_PUBKEYHASH: { | ||||
CKeyID keyID = CKeyID(uint160(vSolutions[0])); | CKeyID keyID = CKeyID(uint160(vSolutions[0])); | ||||
CPubKey pubkey; | CPubKey pubkey; | ||||
if (!provider.GetPubKey(keyID, pubkey)) { | if (!GetPubKey(provider, sigdata, keyID, pubkey)) { | ||||
// Pubkey could not be found, add to missing | // Pubkey could not be found, add to missing | ||||
sigdata.missing_pubkeys.push_back(keyID); | sigdata.missing_pubkeys.push_back(keyID); | ||||
return false; | return false; | ||||
} | } | ||||
if (!CreateSig(creator, sigdata, provider, sig, pubkey, | if (!CreateSig(creator, sigdata, provider, sig, pubkey, | ||||
scriptPubKey)) { | scriptPubKey)) { | ||||
return false; | return false; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 361 Lines • Show Last 20 Lines |