Fix for orphan fix (check blocksize)

This commit is contained in:
mydesktop
2014-06-11 17:32:53 -04:00
parent feac5a7b2d
commit 75fc3e90b1
3 changed files with 22 additions and 0 deletions

View File

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