add new get_mempool_txs

master
moneroexamples 4 years ago
parent 39e6dbcbc9
commit 314432b5f6

@ -198,10 +198,27 @@ MicroCore::get_mempool_txs(
std::vector<tx_info>& tx_infos,
std::vector<spent_key_image_info>& key_image_infos) const
{
return m_mempool.get_transactions_and_spent_keys_info(
tx_infos, key_image_infos, true);
tx_infos, key_image_infos);
}
bool
MicroCore::get_mempool_txs(
std::vector<transaction>& txs) const
{
try
{
m_mempool.get_transactions(txs);
return true;
}
catch (std::exception const& e)
{
std::cerr << e.what() << std::endl;
return false;
}
}
uint64_t
MicroCore::get_current_blockchain_height() const

@ -148,6 +148,9 @@ public:
std::vector<tx_info>& tx_infos,
std::vector<spent_key_image_info>& key_image_infos) const;
virtual bool
get_mempool_txs(std::vector<transaction>& txs) const;
virtual uint64_t
get_current_blockchain_height() const;

Loading…
Cancel
Save