Bitcoin Core 28.99.0
P2P Digital Currency
Classes | Namespaces | Enumerations | Functions | Variables
migrate.cpp File Reference
#include <compat/byteswap.h>
#include <crypto/common.h>
#include <logging.h>
#include <streams.h>
#include <util/translation.h>
#include <wallet/migrate.h>
#include <optional>
#include <variant>
Include dependency graph for migrate.cpp:

Go to the source code of this file.

Classes

class  wallet::MetaPage
 Berkeley DB BTree metadata page layout. More...
 
class  wallet::RecordHeader
 General class for records in a BDB BTree database. More...
 
class  wallet::DataRecord
 Class for data in the record directly. More...
 
class  wallet::InternalRecord
 Class for records representing internal nodes of the BTree. More...
 
class  wallet::OverflowRecord
 Class for records representing overflow records of the BTree. More...
 
class  wallet::PageHeader
 A generic data page in the database. More...
 
class  wallet::RecordsPage
 A page of records in the database. More...
 
class  wallet::OverflowPage
 A page containing overflow data. More...
 
class  wallet::InternalPage
 A page of records in the database. More...
 

Namespaces

namespace  wallet
 

Enumerations

enum class  wallet::PageType : uint8_t { wallet::BTREE_INTERNAL = 3 , wallet::BTREE_LEAF = 5 , wallet::OVERFLOW_DATA = 7 , wallet::BTREE_META = 9 }
 
enum class  wallet::RecordType : uint8_t { wallet::KEYDATA = 1 , wallet::OVERFLOW_DATA = 3 , wallet::DELETE = 0x80 }
 
enum class  wallet::BTreeFlags : uint32_t { wallet::SUBDB = 0x20 }
 

Functions

static void wallet::SeekToPage (AutoFile &s, uint32_t page_num, uint32_t page_size)
 
std::unique_ptr< BerkeleyRODatabase > wallet::MakeBerkeleyRODatabase (const fs::path &path, const DatabaseOptions &options, DatabaseStatus &status, bilingual_str &error)
 Return object giving access to Berkeley Read Only database at specified path. More...
 

Variables

constexpr uint32_t wallet::BTREE_MAGIC = 0x00053162
 
constexpr uint32_t wallet::BTREE_MAGIC_OE = 0x62310500
 
static const std::vector< std::byte > wallet::SUBDATABASE_NAME = {std::byte{'m'}, std::byte{'a'}, std::byte{'i'}, std::byte{'n'}}