Add bootstrap_legacy
source
This commit is contained in:
parent
6fc74c8ccb
commit
aa1ef3144b
5 changed files with 5 additions and 3 deletions
|
@ -115,6 +115,7 @@ enum class detail : uint8_t
|
|||
// blockprocessor result
|
||||
live,
|
||||
bootstrap,
|
||||
bootstrap_legacy,
|
||||
unchecked,
|
||||
local,
|
||||
forced,
|
||||
|
|
|
@ -25,6 +25,7 @@ enum class block_source
|
|||
unknown = 0,
|
||||
live,
|
||||
bootstrap,
|
||||
bootstrap_legacy,
|
||||
unchecked,
|
||||
local,
|
||||
forced,
|
||||
|
|
|
@ -133,7 +133,7 @@ bool nano::bootstrap_attempt::process_block (std::shared_ptr<nano::block> const
|
|||
}
|
||||
else
|
||||
{
|
||||
node_l->block_processor.add (block_a);
|
||||
node_l->block_processor.add (block_a, nano::block_source::bootstrap_legacy);
|
||||
}
|
||||
return stop_pull;
|
||||
}
|
||||
|
|
|
@ -311,7 +311,7 @@ bool nano::bootstrap_attempt_lazy::process_block_lazy (std::shared_ptr<nano::blo
|
|||
}
|
||||
lazy_block_state_backlog_check (block_a, hash);
|
||||
lock.unlock ();
|
||||
node->block_processor.add (block_a);
|
||||
node->block_processor.add (block_a, nano::block_source::bootstrap_legacy);
|
||||
}
|
||||
// Force drop lazy bootstrap connection for long bulk_pull
|
||||
if (pull_blocks_processed > max_blocks)
|
||||
|
|
|
@ -387,7 +387,7 @@ void nano::bootstrap_ascending::service::process (const nano::asc_pull_ack::bloc
|
|||
|
||||
for (auto & block : response.blocks)
|
||||
{
|
||||
block_processor.add (block);
|
||||
block_processor.add (block, nano::block_source::bootstrap);
|
||||
}
|
||||
nano::lock_guard<nano::mutex> lock{ mutex };
|
||||
throttle.add (true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue