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

Method Genesis

src/chain.h:477–479  ·  view source on GitHub ↗

Returns the index entry for the genesis block of this chain, or nullptr if none. */

Source from the content-addressed store, hash-verified

475public:
476 /** Returns the index entry for the genesis block of this chain, or nullptr if none. */
477 CBlockIndex *Genesis() const {
478 return vChain.size() > 0 ? vChain[0] : nullptr;
479 }
480
481 /** Returns the index entry for the tip of this chain, or nullptr if none. */
482 CBlockIndex *Tip() const {

Callers 7

FindForkInGlobalIndexFunction · 0.80
CheckBlockIndexMethod · 0.80
rescanblockchainFunction · 0.80
CreateWalletFromFileMethod · 0.80
ListCoinsTestingSetupMethod · 0.80
TestGUIFunction · 0.80
NextSyncBlockFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 2

ListCoinsTestingSetupMethod · 0.64
TestGUIFunction · 0.64