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

Method getTip

src/node/interfaces.cpp:727–731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

725 return ::AcceptToMemoryPool(chainman().ActiveChainstate(), tx, GetTime(), false /* bypass_limits */, true /* test_accept */);
726 }
727 CBlockIndex* getTip() override {
728 LOCK(::cs_main);
729 const CChain& active = Assert(m_node.chainman)->ActiveChain();
730 return active.Tip();
731 }
732 bool testBlockValidity(BlockValidationState& state, const CChainParams& chainparams, const CBlock& block, CBlockIndex* pindexPrev, bool fCheckPOW, bool fCheckMerkleRoot) override {
733 LOCK(::cs_main);
734 Assert(m_node.chainman);

Callers 10

FundTransactionFunction · 0.80
sendFunction · 0.80
walletcreatefundedpsbtFunction · 0.80
signblockFunction · 0.80
getpeginaddressFunction · 0.80
sendtomainchain_pakFunction · 0.80
createrawpeginFunction · 0.80
blindrawtransactionFunction · 0.80
generatepegoutproofFunction · 0.80

Calls 1

TipMethod · 0.45

Tested by

no test coverage detected