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

Detailed Description

Definition at line 243 of file net_entities.hpp.

+ Collaboration diagram for altintegration::btc::PrefilledTransaction:

Public Member Functions

template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action)
 

Public Attributes

uint16_t index
 
Transaction tx
 
 ADD_SERIALIZE_METHODS
 

Friends

bool operator== (const PrefilledTransaction &a, const PrefilledTransaction &b)
 
bool operator!= (const PrefilledTransaction &a, const PrefilledTransaction &b)
 

Member Function Documentation

◆ SerializationOp()

template<typename Stream , typename Operation >
void altintegration::btc::PrefilledTransaction::SerializationOp ( Stream &  s,
Operation  ser_action 
)
inline

Definition at line 252 of file net_entities.hpp.

252 {
253 uint64_t idx = this->index;
254 READWRITE(COMPACTSIZE(idx));
255 if (idx > std::numeric_limits<uint16_t>::max()) {
256 throw std::ios_base::failure("index overflowed 16-bits");
257 }
258 index = (uint16_t)idx;
259 READWRITE(this->tx);
260 }

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const PrefilledTransaction a,
const PrefilledTransaction b 
)
friend

Definition at line 266 of file net_entities.hpp.

267 {
268 return !(a == b);
269 }

◆ operator==

bool operator== ( const PrefilledTransaction a,
const PrefilledTransaction b 
)
friend

Definition at line 262 of file net_entities.hpp.

263 {
264 return a.index == b.index && a.tx == b.tx;
265 }

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

altintegration::btc::PrefilledTransaction::ADD_SERIALIZE_METHODS

Definition at line 249 of file net_entities.hpp.

◆ index

uint16_t altintegration::btc::PrefilledTransaction::index

Definition at line 246 of file net_entities.hpp.

◆ tx

Transaction altintegration::btc::PrefilledTransaction::tx

Definition at line 247 of file net_entities.hpp.


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