Skip to content

Commit

Permalink
minor lint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fireice-uk committed Mar 22, 2024
1 parent c058b8e commit 53b65b0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 10 additions & 8 deletions src/CryptoNoteCore/Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,22 @@ class BlockWithTransactions : public IBlock {
friend class core;
};

core::core(const Currency &currency, i_cryptonote_protocol *pprotocol, logging::ILogger &logger, bool blockchainIndexesEnabled, bool blockchainAutosaveEnabled) : m_currency(currency),
logger(logger, "core"),
m_mempool(currency, m_blockchain, m_timeProvider, logger),
m_blockchain(currency, m_mempool, logger, blockchainIndexesEnabled, blockchainAutosaveEnabled),
m_miner(new Miner(currency, *this, logger)),
m_starter_message_showed(false)
core::core(const Currency &currency, i_cryptonote_protocol *pprotocol, logging::ILogger &logger, bool blockchainIndexesEnabled, bool blockchainAutosaveEnabled) :
m_currency(currency),
logger(logger, "core"),
m_mempool(currency, m_blockchain, m_timeProvider, logger),
m_blockchain(currency, m_mempool, logger, blockchainIndexesEnabled, blockchainAutosaveEnabled),
m_miner(new Miner(currency, *this, logger)),
m_starter_message_showed(false)
{

set_cryptonote_protocol(pprotocol);
m_blockchain.addObserver(this);
m_mempool.addObserver(this);
}
//-----------------------------------------------------------------------------------------------
core::~core() {

//-----------------------------------------------------------------------------------------------
core::~core() {
m_blockchain.removeObserver(this);
}

Expand Down
2 changes: 1 addition & 1 deletion src/CryptoNoteCore/Core.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ namespace cn {
bool add_new_tx(const Transaction &tx, const crypto::Hash &tx_hash, size_t blob_size, tx_verification_context &tvc, bool keeped_by_block, uint32_t height);
bool load_state_data();
bool parse_tx_from_blob(Transaction &tx, crypto::Hash &tx_hash, crypto::Hash &tx_prefix_hash, const BinaryArray &blob);
bool handle_incoming_block(const Block &b, block_verification_context &bvc, bool control_miner, bool relay_block);
bool handle_incoming_block(const Block &b, block_verification_context &bvc, bool control_miner, bool relay_block) override;

bool check_tx_syntax(const Transaction &tx);
//check correct values, amounts and all lightweight checks not related with database
Expand Down

0 comments on commit 53b65b0

Please sign in to comment.