From 131884af7edfeba16b4a0b7cbf83f938c4bc9896 Mon Sep 17 00:00:00 2001 From: Sergey Kroshnin Date: Sat, 24 Aug 2019 01:52:00 +0300 Subject: [PATCH] Start frontiers confirmation after initial bootstrap (#2236) --- nano/node/active_transactions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nano/node/active_transactions.cpp b/nano/node/active_transactions.cpp index 53b9b4dd5..1c5976f6f 100644 --- a/nano/node/active_transactions.cpp +++ b/nano/node/active_transactions.cpp @@ -115,9 +115,9 @@ void nano::active_transactions::request_confirm (std::unique_lock & std::deque> rebroadcast_bundle; std::deque, std::shared_ptr>>>> confirm_req_bundle; - // Confirm frontiers when there aren't many confirmations already pending + // Confirm frontiers when there aren't many confirmations already pending and node finished initial bootstrap lock_a.unlock (); - if (node.pending_confirmation_height.size () < confirmed_frontiers_max_pending_cut_off) + if (node.pending_confirmation_height.size () < confirmed_frontiers_max_pending_cut_off && node.store.block_count (transaction).sum () >= node.ledger.bootstrap_weight_max_blocks) { confirm_frontiers (transaction); }