Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
clemahieu committed Sep 25, 2023
1 parent c5106ae commit 7aabf44
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion nano/secure/ledger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ void ledger_processor::state_block_impl (nano::state_block & block_a)
ledger.stats.inc (nano::stat::type::ledger, nano::stat::detail::state_block);
block_a.sideband_set (nano::block_sideband (block_a.hashables.account /* unused */, 0 /* unused */, info.block_count + 1, nano::seconds_since_epoch (), block_details, source_epoch));
ledger.store.block.put (transaction, hash, block_a);
if (!block_a.hashables.previous.is_zero())
if (!block_a.hashables.previous.is_zero ())
{
ledger.store.successor.put (transaction, block_a.hashables.previous, hash);
}
Expand Down
2 changes: 1 addition & 1 deletion nano/store/lmdb/lmdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ nano::store::lmdb::component::component (nano::logger_mt & logger_a, boost::file
confirmation_height_store{ *this },
final_vote_store{ *this },
version_store{ *this },
successor_store{ * this },
successor_store{ *this },
logger (logger_a),
env (error, path_a, nano::store::lmdb::env::options::make ().set_config (lmdb_config_a).set_use_no_mem_init (true)),
mdb_txn_tracker (logger_a, txn_tracking_config_a, block_processor_batch_max_time_a),
Expand Down
3 changes: 1 addition & 2 deletions nano/store/lmdb/successor.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include <nano/store/lmdb/successor.hpp>

#include <nano/store/lmdb/lmdb.hpp>
#include <nano/store/lmdb/successor.hpp>

nano::store::lmdb::successor::successor (nano::store::lmdb::component & store) :
store{ store }
Expand Down
3 changes: 1 addition & 2 deletions nano/store/rocksdb/successor.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include <nano/store/rocksdb/successor.hpp>

#include <nano/store/rocksdb/rocksdb.hpp>
#include <nano/store/rocksdb/successor.hpp>

nano::store::rocksdb::successor::successor (nano::store::rocksdb::component & store) :
store{ store }
Expand Down
1 change: 0 additions & 1 deletion nano/store/rocksdb/successor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ class successor : public nano::store::successor
void del (store::write_transaction const &, nano::block_hash const &) override;
};
} // namespace nano::store::rocksdb

1 change: 0 additions & 1 deletion nano/store/successor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ class successor
virtual void del (store::write_transaction const &, nano::block_hash const &) = 0;
};
} // namespace nano::store

0 comments on commit 7aabf44

Please sign in to comment.