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

An outpoint - a combination of a transaction hash and an index n into its vout. More...

Detailed Description

Definition at line 25 of file transaction.hpp.

#include <transaction.hpp>

+ Collaboration diagram for altintegration::btc::OutPoint:

Public Member Functions

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

Public Attributes

uint256 hash
 
uint32_t n
 
 ADD_SERIALIZE_METHODS
 

Friends

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

Member Function Documentation

◆ SerializationOp()

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

Definition at line 32 of file transaction.hpp.

32 {
33 READWRITE(hash);
34 READWRITE(n);
35 }

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 41 of file transaction.hpp.

41 {
42 return !(a == b);
43 }

◆ operator==

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

Definition at line 37 of file transaction.hpp.

37 {
38 return a.hash == b.hash && a.n == b.n;
39 }

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

altintegration::btc::OutPoint::ADD_SERIALIZE_METHODS

Definition at line 29 of file transaction.hpp.

◆ hash

uint256 altintegration::btc::OutPoint::hash

Definition at line 26 of file transaction.hpp.

◆ n

uint32_t altintegration::btc::OutPoint::n

Definition at line 27 of file transaction.hpp.


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