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

Method CreateNewBlockWithKey

src/miner.cpp:251–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlockWithKey(CReserveKey& reservekey, bool fMineWitnessTx, bool fProofOfStake, int64_t* pTotalFees, int32_t txProofTime, int32_t nTimeLimit)
252{
253 CPubKey pubkey;
254 if (!reservekey.GetReservedKey(pubkey, true))
255 return NULL;
256
257 CScript scriptPubKey = CScript() << ToByteVector(pubkey) << OP_CHECKSIG;
258 return CreateNewBlock(scriptPubKey, fMineWitnessTx, fProofOfStake, pTotalFees, txProofTime, nTimeLimit);
259}
260
261std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewStake(bool fMineWitnessTx, bool fProofOfStake, int64_t* pTotalFees, int32_t txProofTime, int32_t nTimeLimit)
262{

Callers 1

getworkFunction · 0.80

Calls 3

ToByteVectorFunction · 0.85
GetReservedKeyMethod · 0.80
CScriptClass · 0.70

Tested by

no test coverage detected