Bitcoin Core 29.99.0
P2P Digital Currency
Public Member Functions | Protected Member Functions | List of all members
TxGraph::BlockBuilder Class Referenceabstract

Interface returned by GetBlockBuilder. More...

#include <txgraph.h>

Public Member Functions

virtual ~BlockBuilder ()=default
 Support safe inheritance. More...
 
virtual std::optional< std::pair< std::vector< Ref * >, FeePerWeight > > GetCurrentChunk () noexcept=0
 Get the chunk that is currently suggested to be included, plus its feerate, if any. More...
 
virtual void Include () noexcept=0
 Mark the current chunk as included, and progress to the next one. More...
 
virtual void Skip () noexcept=0
 Mark the current chunk as skipped, and progress to the next one. More...
 

Protected Member Functions

 BlockBuilder () noexcept=default
 Make constructor non-public (use TxGraph::GetBlockBuilder()). More...
 

Detailed Description

Interface returned by GetBlockBuilder.

Definition at line 174 of file txgraph.h.

Constructor & Destructor Documentation

◆ BlockBuilder()

TxGraph::BlockBuilder::BlockBuilder ( )
protecteddefaultnoexcept

Make constructor non-public (use TxGraph::GetBlockBuilder()).

◆ ~BlockBuilder()

virtual TxGraph::BlockBuilder::~BlockBuilder ( )
virtualdefault

Support safe inheritance.

Member Function Documentation

◆ GetCurrentChunk()

virtual std::optional< std::pair< std::vector< Ref * >, FeePerWeight > > TxGraph::BlockBuilder::GetCurrentChunk ( )
pure virtualnoexcept

Get the chunk that is currently suggested to be included, plus its feerate, if any.

◆ Include()

virtual void TxGraph::BlockBuilder::Include ( )
pure virtualnoexcept

Mark the current chunk as included, and progress to the next one.

◆ Skip()

virtual void TxGraph::BlockBuilder::Skip ( )
pure virtualnoexcept

Mark the current chunk as skipped, and progress to the next one.

Further chunks from the same cluster as the current one will not be reported anymore.


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