mirror of
https://github.com/monero-project/monero.git
synced 2026-01-15 14:23:31 -08:00
Merge pull request #442
43bca0dblockchain_utilities: new blockchain_dump diagnostic tool (moneromooo-monero)5f397e4Add functions to iterate through blocks, txes, outputs, key images (moneromooo-monero)0a5a5e8db_bdb: record numbers for recno databases start at 1 (moneromooo-monero)50dfdc0db_bdb: DB_KEYEMPTY is also not found for non-top recon fields (moneromooo-monero)572780eblockchain_db: use the DNE exceptions where appropriate (moneromooo-monero)
This commit is contained in:
@@ -3188,3 +3188,23 @@ bool Blockchain::get_hard_fork_voting_info(uint8_t version, uint32_t &window, ui
|
||||
{
|
||||
return m_hardfork->get_voting_info(version, window, votes, threshold, voting);
|
||||
}
|
||||
|
||||
bool Blockchain::for_all_key_images(std::function<bool(const crypto::key_image&)> f) const
|
||||
{
|
||||
return m_db->for_all_key_images(f);
|
||||
}
|
||||
|
||||
bool Blockchain::for_all_blocks(std::function<bool(uint64_t, const crypto::hash&, const block&)> f) const
|
||||
{
|
||||
return m_db->for_all_blocks(f);
|
||||
}
|
||||
|
||||
bool Blockchain::for_all_transactions(std::function<bool(const crypto::hash&, const cryptonote::transaction&)> f) const
|
||||
{
|
||||
return m_db->for_all_transactions(f);
|
||||
}
|
||||
|
||||
bool Blockchain::for_all_outputs(std::function<bool(uint64_t amount, const crypto::hash &tx_hash, size_t tx_idx)> f) const
|
||||
{
|
||||
return m_db->for_all_outputs(f);;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user