Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/prooftreeelement.h
- This file was added.
// Copyright (c) 2022 The Bitcoin developers | |||||
// Distributed under the MIT software license, see the accompanying | |||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | |||||
#ifndef BITCOIN_AVALANCHE_PROOFTREEELEMENT_H | |||||
#define BITCOIN_AVALANCHE_PROOFTREEELEMENT_H | |||||
#include <avalanche/proof.h> | |||||
#include <radix.h> | |||||
#include <rcu.h> | |||||
#include <cstdint> | |||||
namespace avalanche { | |||||
struct ProofTreeElement { | |||||
ProofRef proof; | |||||
ProofTreeElement(const ProofRef &proofIn) : proof(proofIn) {} | |||||
Uint256KeyWrapper getId() const { return proof->getId(); } | |||||
IMPLEMENT_RCU_REFCOUNT(uint64_t); | |||||
}; | |||||
} // namespace avalanche | |||||
#endif // BITCOIN_AVALANCHE_PROOFTREEELEMENT_H |