Bitcoin Core 32.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
btck::Block Class Reference

#include <bitcoinkernel_wrapper.h>

Inheritance diagram for btck::Block:
[legend]
Collaboration diagram for btck::Block:
[legend]

Public Member Functions

 Block (const std::span< const std::byte > raw_block)
 Block (btck_Block *block)
size_t CountTransactions () const
TransactionView GetTransaction (size_t index) const
bool Check (const ConsensusParamsView &consensus_params, BlockCheckFlags flags, BlockValidationState &state) const
BlockHash GetHash () const
BlockHeader GetHeader () const
std::vector< std::byte > ToBytes () const
Public Member Functions inherited from btck::Handle< btck_Block, btck_block_copy, btck_block_destroy >
 Handle (btck_Block *ptr)
Handle & operator= (const Handle &other)
 ~Handle ()
btck_Block * get ()

Additional Inherited Members

Protected Attributes inherited from btck::Handle< btck_Block, btck_block_copy, btck_block_destroy >
btck_Block * m_ptr

Detailed Description

Definition at line 879 of file bitcoinkernel_wrapper.h.

Constructor & Destructor Documentation

◆ Block() [1/2]

btck::Block::Block ( const std::span< const std::byte > raw_block)
inline

Definition at line 882 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:

◆ Block() [2/2]

btck::Block::Block ( btck_Block * block)
inline

Definition at line 887 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:

Member Function Documentation

◆ Check()

bool btck::Block::Check ( const ConsensusParamsView & consensus_params,
BlockCheckFlags flags,
BlockValidationState & state ) const
inline

Definition at line 1066 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CountTransactions()

size_t btck::Block::CountTransactions ( ) const
inline

Definition at line 889 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetHash()

BlockHash btck::Block::GetHash ( ) const
inline

Definition at line 905 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetHeader()

BlockHeader btck::Block::GetHeader ( ) const
inline

Definition at line 910 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetTransaction()

TransactionView btck::Block::GetTransaction ( size_t index) const
inline

Definition at line 894 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ToBytes()

std::vector< std::byte > btck::Block::ToBytes ( ) const
inline

Definition at line 915 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: