MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / WriteBestBlock

Method WriteBestBlock

src/index/base.cpp:90–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void BaseIndex::DB::WriteBestBlock(CDBBatch& batch, const CBlockLocator& locator)
91{
92 batch.Write(DB_BEST_BLOCK, locator);
93}
94
95BaseIndex::BaseIndex(std::unique_ptr<interfaces::Chain> chain, std::string name, std::string thread_name)
96 : m_chain{std::move(chain)}, m_name{std::move(name)}, m_thread_name{std::move(thread_name)} {}

Callers 2

CommitMethod · 0.45
WalletMigrationFunction · 0.45

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected