MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / AddKeyPubKey

Method AddKeyPubKey

src/wallet/scriptpubkeyman.cpp:653–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

651}
652
653bool LegacyScriptPubKeyMan::AddKeyPubKey(const CKey &secret,
654 const CPubKey &pubkey) {
655 LOCK(cs_KeyStore);
656 WalletBatch batch(m_storage.GetDatabase());
657 return LegacyScriptPubKeyMan::AddKeyPubKeyWithDB(batch, secret, pubkey);
658}
659
660bool LegacyScriptPubKeyMan::AddKeyPubKeyWithDB(WalletBatch &batch,
661 const CKey &secret,

Callers 6

AddKeyFunction · 0.45
BOOST_FIXTURE_TEST_CASEFunction · 0.45
CalculateP2PKHInputSizeFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
FUZZ_TARGET_INITFunction · 0.45
TestGUIFunction · 0.45

Calls

no outgoing calls

Tested by 6

AddKeyFunction · 0.36
BOOST_FIXTURE_TEST_CASEFunction · 0.36
CalculateP2PKHInputSizeFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
FUZZ_TARGET_INITFunction · 0.36
TestGUIFunction · 0.36