Changeset View
Changeset View
Standalone View
Standalone View
src/index/disktxpos.h
// Copyright (c) 2019 The Bitcoin Core developers | // Copyright (c) 2019 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_INDEX_DISKTXPOS_H | #ifndef BITCOIN_INDEX_DISKTXPOS_H | ||||
#define BITCOIN_INDEX_DISKTXPOS_H | #define BITCOIN_INDEX_DISKTXPOS_H | ||||
#include <chain.h> | |||||
#include <flatfile.h> | #include <flatfile.h> | ||||
#include <primitives/block.h> | #include <serialize.h> | ||||
#include <primitives/transaction.h> | |||||
struct CDiskTxPos : public FlatFilePos { | struct CDiskTxPos : public FlatFilePos { | ||||
unsigned int nTxOffset; // after header | unsigned int nTxOffset; // after header | ||||
SERIALIZE_METHODS(CDiskTxPos, obj) { | SERIALIZE_METHODS(CDiskTxPos, obj) { | ||||
READWRITEAS(FlatFilePos, obj); | READWRITEAS(FlatFilePos, obj); | ||||
READWRITE(VARINT(obj.nTxOffset)); | READWRITE(VARINT(obj.nTxOffset)); | ||||
} | } | ||||
Show All 13 Lines |