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

Method GetScriptForMining

src/wallet/wallet.cpp:3738–3747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3736}
3737
3738void CWallet::GetScriptForMining(std::shared_ptr<CReserveScript> &script)
3739{
3740 std::shared_ptr<CReserveKey> rKey = std::make_shared<CReserveKey>(this);
3741 CPubKey pubkey;
3742 if (!rKey->GetReservedKey(pubkey))
3743 return;
3744
3745 script = rKey;
3746 script->reserveScript = CScript() << ToByteVector(pubkey) << OP_CHECKSIG;
3747}
3748
3749void CWallet::LockCoin(const COutPoint& output)
3750{

Callers 1

generateFunction · 0.80

Calls 3

ToByteVectorFunction · 0.85
GetReservedKeyMethod · 0.80
CScriptClass · 0.70

Tested by

no test coverage detected