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

Method ReadBestBlock

src/wallet/walletdb.cpp:178–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178bool WalletBatch::ReadBestBlock(CBlockLocator& locator)
179{
180 if (m_batch->Read(DBKeys::BESTBLOCK, locator) && !locator.vHave.empty()) return true;
181 return m_batch->Read(DBKeys::BESTBLOCK_NOMERKLE, locator);
182}
183
184bool WalletBatch::WriteOrderPosNext(int64_t nOrderPosNext)
185{

Callers 1

AttachChainMethod · 0.45

Calls 2

ReadMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected