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

Function CreateNewBlockWithKey

src/miner.cpp:308–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey)
309{
310 CPubKey pubkey;
311 if (!reservekey.GetReservedKey(pubkey))
312 return NULL;
313
314 CScript scriptPubKey = CScript() << ToByteVector(pubkey) << OP_CHECKSIG;
315 return CreateNewBlock(scriptPubKey);
316}
317
318static bool ProcessBlockFound(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey)
319{

Callers 2

BitcoinMinerFunction · 0.85
generateFunction · 0.85

Calls 4

ToByteVectorFunction · 0.85
CreateNewBlockFunction · 0.85
GetReservedKeyMethod · 0.80
CScriptClass · 0.70

Tested by

no test coverage detected