Changeset View
Changeset View
Standalone View
Standalone View
src/blockstatus.h
// Copyright (c) 2018 The Bitcoin developers | // Copyright (c) 2018 The Bitcoin 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_BLOCKSTATUS_H | #ifndef BITCOIN_BLOCKSTATUS_H | ||||
#define BITCOIN_BLOCKSTATUS_H | #define BITCOIN_BLOCKSTATUS_H | ||||
#include "blockvalidity.h" | #include <blockvalidity.h> | ||||
#include "serialize.h" | #include <serialize.h> | ||||
#include <cstdint> | #include <cstdint> | ||||
struct BlockStatus { | struct BlockStatus { | ||||
private: | private: | ||||
uint32_t status; | uint32_t status; | ||||
explicit constexpr BlockStatus(uint32_t nStatusIn) : status(nStatusIn) {} | explicit constexpr BlockStatus(uint32_t nStatusIn) : status(nStatusIn) {} | ||||
▲ Show 20 Lines • Show All 111 Lines • Show Last 20 Lines |