Loading...
Searching...
No Matches
resdb::utxo::TxMempool Class Reference

#include <tx_mempool.h>

Public Member Functions

 TxMempool ()
 
 ~TxMempool ()
 
int64_t AddUTXO (const UTXO &utxo)
 
int64_t GetUTXOOutValue (int64_t id, int out_idx, const std::string &address)
 
absl::StatusOr< UTXOOut > GetUTXO (int64_t id, int out_idx, const std::string &address)
 
int64_t MarkSpend (int64_t id, int out_idx, const std::string &address)
 
std::vector< UTXO > GetUTXO (int64_t end_idx, int num)
 

Detailed Description

Definition at line 28 of file tx_mempool.h.

Constructor & Destructor Documentation

◆ TxMempool()

resdb::utxo::TxMempool::TxMempool ( )

Definition at line 27 of file tx_mempool.cpp.

◆ ~TxMempool()

resdb::utxo::TxMempool::~TxMempool ( )

Definition at line 28 of file tx_mempool.cpp.

Member Function Documentation

◆ AddUTXO()

int64_t resdb::utxo::TxMempool::AddUTXO ( const UTXO &  utxo)

Definition at line 30 of file tx_mempool.cpp.

◆ GetUTXO() [1/2]

std::vector< UTXO > resdb::utxo::TxMempool::GetUTXO ( int64_t  end_idx,
int  num 
)

Definition at line 107 of file tx_mempool.cpp.

◆ GetUTXO() [2/2]

absl::StatusOr< UTXOOut > resdb::utxo::TxMempool::GetUTXO ( int64_t  id,
int  out_idx,
const std::string &  address 
)

Definition at line 37 of file tx_mempool.cpp.

◆ GetUTXOOutValue()

int64_t resdb::utxo::TxMempool::GetUTXOOutValue ( int64_t  id,
int  out_idx,
const std::string &  address 
)

Definition at line 64 of file tx_mempool.cpp.

◆ MarkSpend()

int64_t resdb::utxo::TxMempool::MarkSpend ( int64_t  id,
int  out_idx,
const std::string &  address 
)

Definition at line 90 of file tx_mempool.cpp.