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

Method Tip

src/chain.h:585–588  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

583
584 /** Returns the index entry for the tip of this chain, or nullptr if none. */
585 CBlockIndex* Tip() const
586 {
587 return vChain.size() > 0 ? vChain[vChain.size() - 1] : nullptr;
588 }
589
590 /** Returns the index entry at a particular height in this chain, or nullptr if no such height exists. */
591 CBlockIndex* operator[](int nHeight) const

Callers 15

ActiveTipMethod · 0.45
rest_headersFunction · 0.45
rest_blockFunction · 0.45
rest_getutxosFunction · 0.45
CanDirectFetchMethod · 0.45
AlreadyHaveTxMethod · 0.45
ProcessGetBlockDataMethod · 0.45
ProcessHeadersMessageMethod · 0.45
ProcessMessageMethod · 0.45
ConsiderEvictionMethod · 0.45
SendMessagesMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by 1

TestBlockValidityFunction · 0.36