CurrentBlockchainStatus::get_blocks_range added

pull/88/head
moneroexamples 6 years ago
parent 64eda15eb1
commit fc88d67fff

@ -197,6 +197,22 @@ CurrentBlockchainStatus::get_block(uint64_t height, block &blk)
return mcore->get_block_from_height(height, blk);
}
vector<block>
CurrentBlockchainStatus::get_blocks_range(
uint64_t const& h1, uint64_t const& h2)
{
try
{
return core_storage->get_db().get_blocks_range(h1, h2);
}
catch (BLOCK_DNE& e)
{
cerr << e.what() << endl;
}
return {};
}
bool
CurrentBlockchainStatus::get_block_txs(const block &blk, list <transaction> &blk_txs)
{

@ -105,6 +105,9 @@ struct CurrentBlockchainStatus
static bool
get_block(uint64_t height, block &blk);
static vector<block>
get_blocks_range(uint64_t const& h1, uint64_t const& h2);
static bool
get_block_txs(const block &blk, list <transaction> &blk_txs);

@ -40,11 +40,6 @@ OutputInputIdentification::OutputInputIdentification(
throw OutputInputIdentificationException("Cant get derived key for a tx");
}
if (!tx_is_coinbase)
{
}
}
uint64_t

Loading…
Cancel
Save