MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / AddCScript

Method AddCScript

src/wallet/wallet.cpp:157–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157bool CWallet::AddCScript(const CScript& redeemScript)
158{
159 if (!CCryptoKeyStore::AddCScript(redeemScript))
160 return false;
161 if (!fFileBacked)
162 return true;
163 return CWalletDB(strWalletFile).WriteCScript(Hash160(redeemScript), redeemScript);
164}
165
166bool CWallet::LoadCScript(const CScript& redeemScript)
167{

Callers 3

addmultisigaddressFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45

Calls 3

CWalletDBClass · 0.85
Hash160Function · 0.85
WriteCScriptMethod · 0.80

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36