Remove unused code (#953)
This commit is contained in:
parent
220ab39598
commit
ef6da06e04
2 changed files with 0 additions and 21 deletions
|
@ -1479,7 +1479,6 @@ void rai::block_processor::process_receive_many (std::unique_lock<std::mutex> &
|
|||
{
|
||||
{
|
||||
rai::transaction transaction (node.store.environment, nullptr, true);
|
||||
auto cutoff (std::chrono::steady_clock::now () + rai::transaction_timeout);
|
||||
lock_a.lock ();
|
||||
auto count (0);
|
||||
while (have_blocks () && count < 16384)
|
||||
|
@ -2021,25 +2020,6 @@ rai::uint128_t rai::gap_cache::bootstrap_threshold (MDB_txn * transaction_a)
|
|||
return result;
|
||||
}
|
||||
|
||||
void rai::gap_cache::purge_old ()
|
||||
{
|
||||
auto cutoff (std::chrono::steady_clock::now () - std::chrono::seconds (10));
|
||||
std::lock_guard<std::mutex> lock (mutex);
|
||||
auto done (false);
|
||||
while (!done && !blocks.empty ())
|
||||
{
|
||||
auto first (blocks.get<1> ().begin ());
|
||||
if (first->arrival < cutoff)
|
||||
{
|
||||
blocks.get<1> ().erase (first);
|
||||
}
|
||||
else
|
||||
{
|
||||
done = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void rai::network::confirm_send (rai::confirm_ack const & confirm_a, std::shared_ptr<std::vector<uint8_t>> bytes_a, rai::endpoint const & endpoint_a)
|
||||
{
|
||||
if (node.config.logging.network_publish_logging ())
|
||||
|
|
|
@ -171,7 +171,6 @@ public:
|
|||
void add (MDB_txn *, std::shared_ptr<rai::block>);
|
||||
void vote (std::shared_ptr<rai::vote>);
|
||||
rai::uint128_t bootstrap_threshold (MDB_txn *);
|
||||
void purge_old ();
|
||||
boost::multi_index_container<
|
||||
rai::gap_information,
|
||||
boost::multi_index::indexed_by<
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue