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

Function GetScriptForDestination

src/script/standard.cpp:301–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301CScript GetScriptForDestination(const CTxDestination& dest)
302{
303 CScript script;
304
305 boost::apply_visitor(CScriptVisitor(&script), dest);
306 return script;
307}
308
309CScript GetScriptForMultisig(int nRequired, const std::vector<CPubKey>& keys)
310{

Callers 15

MutateTxAddOutAddrFunction · 0.85
validateaddressFunction · 0.85
BOOST_FOREACHFunction · 0.85
GetAccountAddressFunction · 0.85
SendMoneyFunction · 0.85
getreceivedbyaddressFunction · 0.85
BOOST_FOREACHFunction · 0.85
IsMineFunction · 0.85
importaddressFunction · 0.85
AddKeyPubKeyMethod · 0.85
CreateTransactionMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 1

CScriptVisitorClass · 0.85

Tested by 7

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
SetupDummyInputsFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68