mirror of
https://github.com/monero-project/monero.git
synced 2026-01-18 23:55:47 -08:00
Fix for orphan fix (check blocksize)
This commit is contained in:
@@ -449,6 +449,15 @@ namespace cryptonote
|
||||
return false;
|
||||
}
|
||||
|
||||
// Fix from Boolberry neglects to check block
|
||||
// size, do that with the function below
|
||||
if(!m_core.check_incoming_block_size(blockblob))
|
||||
{
|
||||
error_resp.code = CORE_RPC_ERROR_CODE_WRONG_BLOCKBLOB_SIZE;
|
||||
error_resp.message = "Block bloc size is too big, rejecting block";
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!m_core.handle_block_found(b))
|
||||
{
|
||||
error_resp.code = CORE_RPC_ERROR_CODE_BLOCK_NOT_ACCEPTED;
|
||||
|
||||
Reference in New Issue
Block a user