veriblock-pop-cpp
C++11 Libraries for leveraging VeriBlock Proof-Of-Proof blockchain technology.
altintegration::MemPool::SubmitResult Struct Reference

Result of submission to mempool. More...

Detailed Description

Definition at line 45 of file mempool.hpp.

#include <mempool.hpp>

+ Collaboration diagram for altintegration::MemPool::SubmitResult:

Public Member Functions

 SubmitResult (bool state)
 
 SubmitResult (Status status, bool)
 
 operator bool () const
 
bool isAccepted () const
 
bool isValid () const
 
bool isFailedStateless () const
 
bool isFailedStateful () const
 

Public Attributes

Status status = VALID
 

Constructor & Destructor Documentation

◆ SubmitResult() [1/2]

altintegration::MemPool::SubmitResult::SubmitResult ( bool  state)
inline

Definition at line 51 of file mempool.hpp.

51 {
52 VBK_ASSERT_MSG(
53 state, "SubmitResult can be implicitly constructed from bool=true");
54 }

◆ SubmitResult() [2/2]

altintegration::MemPool::SubmitResult::SubmitResult ( Status  status,
bool   
)
inline

Definition at line 56 of file mempool.hpp.

56: status(status) {}

Member Function Documentation

◆ isAccepted()

bool altintegration::MemPool::SubmitResult::isAccepted ( ) const
inline

Definition at line 60 of file mempool.hpp.

60 {
61 return status == VALID || status == FAILED_STATEFUL;
62 }

◆ isFailedStateful()

bool altintegration::MemPool::SubmitResult::isFailedStateful ( ) const
inline

Definition at line 68 of file mempool.hpp.

68{ return status == FAILED_STATEFUL; }

◆ isFailedStateless()

bool altintegration::MemPool::SubmitResult::isFailedStateless ( ) const
inline

Definition at line 66 of file mempool.hpp.

66{ return status == FAILED_STATELESS; }

◆ isValid()

bool altintegration::MemPool::SubmitResult::isValid ( ) const
inline

Definition at line 64 of file mempool.hpp.

64{ return status == VALID; }

◆ operator bool()

altintegration::MemPool::SubmitResult::operator bool ( ) const
inline

Definition at line 58 of file mempool.hpp.

58{ return isAccepted(); }

Member Data Documentation

◆ status

Status altintegration::MemPool::SubmitResult::status = VALID

Definition at line 46 of file mempool.hpp.


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