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

Method AddCScript

src/wallet.cpp:383–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383bool CWallet::AddCScript(const CScript& redeemScript)
384{
385 if (!CCryptoKeyStore::AddCScript(redeemScript))
386 return false;
387 if (!fFileBacked)
388 return true;
389 return CWalletDB(strWalletFile).WriteCScript(Hash160(redeemScript.begin(), redeemScript.end()), redeemScript);
390}
391
392bool fWalletUnlockStakingOnly = false;
393

Callers 7

addmultisigaddressFunction · 0.45
MutateTxSignFunction · 0.45
ImportScriptFunction · 0.45
signrawtransactionFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45

Calls 5

CWalletDBClass · 0.85
Hash160Function · 0.85
WriteCScriptMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36