Do not add processed live traffic into priorities (#4801)

- processed live traffic doesn't need bootstrapping

Co-authored-by: gr0vity-dev <homebot@users.noreply.github.com>
This commit is contained in:
gr0vity-dev 2024-12-22 16:46:57 +01:00 committed by GitHub
commit 878e7a1360
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -270,6 +270,9 @@ void nano::bootstrap_service::inspect (secure::transaction const & tx, nano::blo
switch (result) switch (result)
{ {
case nano::block_status::progress: case nano::block_status::progress:
{
// Progress blocks from live traffic don't need further bootstrapping
if (source != nano::block_source::live)
{ {
const auto account = block.account (); const auto account = block.account ();
@ -284,6 +287,7 @@ void nano::bootstrap_service::inspect (secure::transaction const & tx, nano::blo
accounts.priority_set (destination); accounts.priority_set (destination);
} }
} }
}
break; break;
case nano::block_status::gap_source: case nano::block_status::gap_source:
{ {