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

Method GetScriptForMining

src/wallet.cpp:4916–4925  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4914}
4915
4916void CWallet::GetScriptForMining(std::shared_ptr<CReserveScript> &script)
4917{
4918 std::shared_ptr<CReserveKey> rKey = std::make_shared<CReserveKey>(this);
4919 CPubKey pubkey;
4920 if (!rKey->GetReservedKey(pubkey, true))
4921 return;
4922
4923 script = std::make_shared<CReserveScript>();
4924 script->reserveScript = CScript() << ToByteVector(pubkey) << OP_CHECKSIG;
4925}

Callers 1

generateFunction · 0.80

Calls 3

ToByteVectorFunction · 0.85
GetReservedKeyMethod · 0.80
CScriptClass · 0.70

Tested by

no test coverage detected