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

Method AddCScript

src/wallet/wallet.cpp:355–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355bool CWallet::AddCScript(const CScript& redeemScript)
356{
357 if (!CCryptoKeyStore::AddCScript(redeemScript))
358 return false;
359 return WalletBatch(*database).WriteCScript(Hash160(redeemScript), redeemScript);
360}
361
362bool CWallet::LoadCScript(const CScript& redeemScript)
363{

Callers 11

addwitnessaddressFunction · 0.45
rpcdump.cppFile · 0.45
importwalletFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
BOOST_FIXTURE_TEST_CASEFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
SignTransactionFunction · 0.45

Calls 3

WalletBatchClass · 0.85
Hash160Function · 0.85
WriteCScriptMethod · 0.80

Tested by 7

BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_FIXTURE_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36