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

Method OpenBlockFile

src/node/blockstorage.cpp:834–837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

832}
833
834AutoFile BlockManager::OpenBlockFile(const FlatFilePos& pos, bool fReadOnly) const
835{
836 return AutoFile{m_block_file_seq.Open(pos, fReadOnly), m_obfuscation};
837}
838
839/** Open an undo file (rev?????.dat) */
840AutoFile BlockManager::OpenUndoFile(const FlatFilePos& pos, bool fReadOnly) const

Callers 4

BOOST_FIXTURE_TEST_CASEFunction · 0.80
ReadTransactionMethod · 0.80
FindTxMethod · 0.80
ImportBlocksFunction · 0.80

Calls 1

OpenMethod · 0.45

Tested by 1

BOOST_FIXTURE_TEST_CASEFunction · 0.64