mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-03 18:26:15 +00:00
-BEGIN VERIFY SCRIPT- sed --in-place --regexp-extended \ 's;( 20[0-2][0-9])(-20[0-2][0-9])? The Bitcoin Core developers;\1-present The Bitcoin Core developers;g' \ $( git grep -l 'The Bitcoin Core developers' -- ':(exclude)COPYING' ':(exclude)src/ipc/libmultiprocess' ':(exclude)src/minisketch' ) -END VERIFY SCRIPT-
27 lines
727 B
C
27 lines
727 B
C
// Copyright (c) 2019-present The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef BITCOIN_INDEX_DISKTXPOS_H
|
|
#define BITCOIN_INDEX_DISKTXPOS_H
|
|
|
|
#include <flatfile.h>
|
|
#include <serialize.h>
|
|
|
|
struct CDiskTxPos : public FlatFilePos
|
|
{
|
|
uint32_t nTxOffset{0}; // after header
|
|
|
|
SERIALIZE_METHODS(CDiskTxPos, obj)
|
|
{
|
|
READWRITE(AsBase<FlatFilePos>(obj), VARINT(obj.nTxOffset));
|
|
}
|
|
|
|
CDiskTxPos(const FlatFilePos& blockIn, uint32_t nTxOffsetIn) : FlatFilePos{blockIn.nFile, blockIn.nPos}, nTxOffset{nTxOffsetIn} {
|
|
}
|
|
|
|
CDiskTxPos() = default;
|
|
};
|
|
|
|
#endif // BITCOIN_INDEX_DISKTXPOS_H
|