MCPcopy Create free account
hub / github.com/ElementsProject/elements / Genesis

Method Genesis

src/chain.h:579–582  ·  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

577
578 /** Returns the index entry for the genesis block of this chain, or nullptr if none. */
579 CBlockIndex* Genesis() const
580 {
581 return vChain.size() > 0 ? vChain[0] : nullptr;
582 }
583
584 /** Returns the index entry for the tip of this chain, or nullptr if none. */
585 CBlockIndex* Tip() const

Callers 8

FindForkInGlobalIndexMethod · 0.80
CheckBlockIndexMethod · 0.80
CreateSyncedWalletFunction · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80
InitMethod · 0.80
EXCLUSIVE_LOCKS_REQUIREDFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 4

CreateSyncedWalletFunction · 0.64
BOOST_FIXTURE_TEST_CASEFunction · 0.64
BOOST_FIXTURE_TEST_CASEFunction · 0.64
BOOST_FIXTURE_TEST_CASEFunction · 0.64