Skip to content

Commit f081e90

Browse files
author
Alexander Avramenko
committed
Reduced logs
1 parent fbe4b32 commit f081e90

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

csnode/src/transactionsvalidator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ bool TransactionsValidator::validateTransactionAsSource(SolverContext& context,
180180
}
181181

182182
if (wallState.balance_ < zeroBalance_ && !SmartContracts::is_new_state(trx)) {
183-
csdebug() << kLogPrefix << "transaction[" << trxInd << "] results to potentially negative balance " << wallState.balance_.to_double();
183+
csdetails() << kLogPrefix << "transaction[" << trxInd << "] results to potentially negative balance " << wallState.balance_.to_double();
184184
// will be checked in rejected smarts
185185
if (context.smart_contracts().is_known_smart_contract(trx.source())) {
186186
return false;
@@ -255,7 +255,7 @@ size_t TransactionsValidator::makeSmartsValid(SolverContext& context, RejectedSm
255255
if (s.absolute_address(smarts[i].first.source()) == s.absolute_address(source) && smarts[i].second < maskSize) {
256256
maskIncluded[smarts[i].second] = kValidMarker;
257257
++restoredCounter;
258-
csdebug() << kLogPrefix << "balance of transation[" << smarts[i].second << "] source is replenished by other transaction";
258+
csdetails() << kLogPrefix << "balance of transation[" << smarts[i].second << "] source is replenished by other transaction";
259259

260260
WalletsState::WalletId walletId{};
261261
WalletsState::WalletData& wallState = walletsState_.getData(smarts[i].first.source(), walletId);

solver/src/smartcontracts.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,7 @@ void SmartContracts::on_next_block_impl(const csdb::Pool& block, bool reading_db
12581258
csdb::Transaction starter = get_transaction(contract_item.ref_execute, abs_addr);
12591259
if (starter.is_valid()) {
12601260
if (!reading_db) {
1261-
csdebug() << kLogPrefix << "found emitted transaction in " << contract_item.ref_execute;
1261+
csdetails() << kLogPrefix << "found emitted transaction in " << contract_item.ref_execute;
12621262
}
12631263
emit signal_emitted_accepted(tr, starter);
12641264
}
@@ -1647,7 +1647,7 @@ void SmartContracts::on_execution_completed_impl(const std::vector<SmartExecutio
16471647
// is not by primary contract emitted
16481648
continue;
16491649
}
1650-
csdebug() << kLogPrefix << "set innerID = " << next_id << " in " << data_item.contract_ref << " emitted transaction";
1650+
csdetails() << kLogPrefix << "set innerID = " << next_id << " in " << data_item.contract_ref << " emitted transaction";
16511651
// auto inner id generating
16521652
csdb::Transaction tmp(
16531653
++next_id,

0 commit comments

Comments
 (0)