Check if block processor is full in bulk push server (#1668)

This commit is contained in:
cryptocode 2019-02-21 22:57:22 +01:00 committed by GitHub
commit 78d636c14c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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