Skip to content

Commit

Permalink
Change log level
Browse files Browse the repository at this point in the history
  • Loading branch information
aivve committed Apr 4, 2018
1 parent c2e236d commit 5f05312
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/CryptoNoteCore/Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ bool core::check_tx_fee(const Transaction& tx, size_t blobSize, tx_verification_
uint64_t outputs_amount = get_outs_money_amount(tx);

if (outputs_amount > inputs_amount) {
logger(INFO) << "transaction use more money then it has: use " << m_currency.formatAmount(outputs_amount) <<
logger(DEBUGGING) << "transaction use more money then it has: use " << m_currency.formatAmount(outputs_amount) <<
", have " << m_currency.formatAmount(inputs_amount);
tvc.m_verifivation_failed = true;
return false;
Expand All @@ -265,7 +265,7 @@ bool core::check_tx_fee(const Transaction& tx, size_t blobSize, tx_verification_
const uint64_t fee = inputs_amount - outputs_amount;
bool isFusionTransaction = fee == 0 && m_currency.isFusionTransaction(tx, blobSize);
if (!isFusionTransaction && fee < m_currency.minimumFee()) {
logger(INFO) << "transaction fee is not enough: " << m_currency.formatAmount(fee) <<
logger(DEBUGGING) << "transaction fee is not enough: " << m_currency.formatAmount(fee) <<
", minimum fee: " << m_currency.formatAmount(m_currency.minimumFee());
tvc.m_verifivation_failed = true;
tvc.m_tx_fee_too_small = true;
Expand Down
2 changes: 1 addition & 1 deletion src/CryptoNoteProtocol/CryptoNoteProtocolHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ int CryptoNoteProtocolHandler::handle_notify_new_transactions(int command, NOTIF
CryptoNote::tx_verification_context tvc = boost::value_initialized<decltype(tvc)>();
m_core.handle_incoming_tx(transactionBinary, tvc, false);
if (tvc.m_verifivation_failed) {
logger(Logging::INFO) << context << "Tx verification failed";
logger(Logging::DEBUGGING) << context << "Tx verification failed";
}
if (!tvc.m_verifivation_failed && tvc.m_should_be_relayed) {
++tx_blob_it;
Expand Down

0 comments on commit 5f05312

Please sign in to comment.