Check if block processor is full in bulk push server (#1668)
This commit is contained in:
parent
ff2561db7c
commit
78d636c14c
1 changed files with 4 additions and 1 deletions
|
@ -3020,7 +3020,10 @@ void nano::bulk_push_server::received_block (boost::system::error_code const & e
|
|||
auto block (nano::deserialize_block (stream, type_a));
|
||||
if (block != nullptr && !nano::work_validate (*block))
|
||||
{
|
||||
connection->node->process_active (std::move (block));
|
||||
if (!connection->node->block_processor.full ())
|
||||
{
|
||||
connection->node->process_active (std::move (block));
|
||||
}
|
||||
receive ();
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue