Skip to content

Commit

Permalink
Fixed clangformat
Browse files Browse the repository at this point in the history
  • Loading branch information
kladkogex committed Sep 20, 2023
1 parent 8a5d3a4 commit 25761a2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libethereum/BlockChain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ void BlockChain::garbageCollect( bool _force ) {
m_lastCollection = chrono::system_clock::now();

// We subtract memory that blockhashes occupy because it is treated sepaparately
while ( m_lastStats.memTotal() - m_lastStats.memBlockHashes >= c_maxCacheSize ) {
while ( m_lastStats.memTotal() - m_lastStats.memBlockHashes >= c_maxCacheSize ) {
Guard l( x_cacheUsage );
for ( CacheID const& id : m_cacheUsage.back() ) {
m_inUse.erase( id );
Expand Down Expand Up @@ -1376,7 +1376,9 @@ void BlockChain::doLevelDbCompaction() const {
}

void BlockChain::checkConsistency() {
DEV_WRITE_GUARDED( x_details ) { m_details.clear(); }
DEV_WRITE_GUARDED( x_details ) {
m_details.clear();
}

m_blocksDB->forEach( [this]( db::Slice const& _key, db::Slice const& /* _value */ ) {
if ( _key.size() == 32 ) {
Expand Down

0 comments on commit 25761a2

Please sign in to comment.