OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
cbdc::watchtower::tx_error_inputs_spent Class Reference

Indicates that the given transaction contains one or more inputs that have already been spent in other transactions sent to the atomizer. More...

#include <tx_error_messages.hpp>

Public Member Functions

auto operator== (const tx_error_inputs_spent &rhs) const -> bool
 
 tx_error_inputs_spent ()=delete
 
 tx_error_inputs_spent (std::unordered_set< hash_t, hashing::null > input_uhs_ids)
 Constructor.
 
 tx_error_inputs_spent (cbdc::serializer &pkt)
 Construct from a packet.
 
auto input_uhs_ids () const -> std::unordered_set< hash_t, hashing::null >
 Returns the UHS IDs of the inputs that caused this error.
 

Friends

auto cbdc::operator<< (cbdc::serializer &packet, const cbdc::watchtower::tx_error_inputs_spent &err) -> cbdc::serializer &
 
auto cbdc::operator>> (cbdc::serializer &packet, cbdc::watchtower::tx_error_inputs_spent &err) -> cbdc::serializer &
 

Detailed Description

Indicates that the given transaction contains one or more inputs that have already been spent in other transactions sent to the atomizer.

Definition at line 134 of file tx_error_messages.hpp.

Constructor & Destructor Documentation

◆ tx_error_inputs_spent() [1/3]

cbdc::watchtower::tx_error_inputs_spent::tx_error_inputs_spent ( )
delete

◆ tx_error_inputs_spent() [2/3]

cbdc::watchtower::tx_error_inputs_spent::tx_error_inputs_spent ( std::unordered_set< hash_t, hashing::null > input_uhs_ids)
explicit

Constructor.

Parameters
input_uhs_idsthe UHS IDs of the inputs that caused this error.

Definition at line 66 of file tx_error_messages.cpp.

◆ tx_error_inputs_spent() [3/3]

cbdc::watchtower::tx_error_inputs_spent::tx_error_inputs_spent ( cbdc::serializer & pkt)
explicit

Construct from a packet.

Parameters
pktpacket containing a serialized tx_error_inputs_spent.

Definition at line 57 of file tx_error_messages.cpp.

Member Function Documentation

◆ input_uhs_ids()

auto cbdc::watchtower::tx_error_inputs_spent::input_uhs_ids ( ) const -> std::unordered_set<hash_t, hashing::null>
nodiscard

Returns the UHS IDs of the inputs that caused this error.

Returns
input UHS ID set.

Definition at line 61 of file tx_error_messages.cpp.

◆ operator==()

auto cbdc::watchtower::tx_error_inputs_spent::operator== ( const tx_error_inputs_spent & rhs) const -> bool

Definition at line 71 of file tx_error_messages.cpp.

Friends And Related Symbol Documentation

◆ cbdc::operator<<

auto cbdc::operator<< ( cbdc::serializer & packet,
const cbdc::watchtower::tx_error_inputs_spent & err ) -> cbdc::serializer &
friend

◆ cbdc::operator>>

auto cbdc::operator>> ( cbdc::serializer & packet,
cbdc::watchtower::tx_error_inputs_spent & err ) -> cbdc::serializer &
friend

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