mirror of
https://github.com/jwinterm/aeon.git
synced 2026-10-23 06:08:32 +02:00
fixes
This commit is contained in:
@@ -432,6 +432,18 @@ namespace cryptonote
|
||||
return true;
|
||||
}
|
||||
//-----------------------------------------------------------------------------------------------
|
||||
// Used by the RPC server to check the size of an incoming
|
||||
// block_blob
|
||||
bool core::check_incoming_block_size(const blobdata& block_blob)
|
||||
{
|
||||
if(block_blob.size() > get_max_block_size())
|
||||
{
|
||||
LOG_PRINT_L0("WRONG BLOCK BLOB, too big size " << block_blob.size() << ", rejected");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
//-----------------------------------------------------------------------------------------------
|
||||
crypto::hash core::get_tail_id()
|
||||
{
|
||||
return m_blockchain_storage.get_tail_id();
|
||||
@@ -514,6 +526,7 @@ namespace cryptonote
|
||||
|
||||
m_store_blockchain_interval.do_call(boost::bind(&blockchain_storage::store_blockchain, &m_blockchain_storage));
|
||||
m_miner.on_idle();
|
||||
m_mempool.on_idle();
|
||||
return true;
|
||||
}
|
||||
//-----------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user