forked from Qortal/qortal
Avoid logging if there are no remaining transaction signatures to validate. There was too much log spam, none of which was particularly useful.
This commit is contained in:
parent
7c181379b4
commit
35d9a10cf4
@ -857,7 +857,10 @@ public class Controller extends Thread {
|
|||||||
|
|
||||||
int unvalidatedCount = Collections.frequency(incomingTransactionsCopy.values(), Boolean.FALSE);
|
int unvalidatedCount = Collections.frequency(incomingTransactionsCopy.values(), Boolean.FALSE);
|
||||||
int validatedCount = 0;
|
int validatedCount = 0;
|
||||||
LOGGER.debug("Validating signatures in incoming transactions queue (size {})...", unvalidatedCount);
|
|
||||||
|
if (unvalidatedCount > 0) {
|
||||||
|
LOGGER.debug("Validating signatures in incoming transactions queue (size {})...", unvalidatedCount);
|
||||||
|
}
|
||||||
|
|
||||||
List<Transaction> sigValidTransactions = new ArrayList<>();
|
List<Transaction> sigValidTransactions = new ArrayList<>();
|
||||||
|
|
||||||
@ -906,7 +909,9 @@ public class Controller extends Thread {
|
|||||||
sigValidTransactions.add(transaction);
|
sigValidTransactions.add(transaction);
|
||||||
}
|
}
|
||||||
|
|
||||||
LOGGER.debug("Finished validating signatures in incoming transactions queue (valid this round: {}, total pending import: {})...", validatedCount, sigValidTransactions.size());
|
if (unvalidatedCount > 0) {
|
||||||
|
LOGGER.debug("Finished validating signatures in incoming transactions queue (valid this round: {}, total pending import: {})...", validatedCount, sigValidTransactions.size());
|
||||||
|
}
|
||||||
|
|
||||||
if (sigValidTransactions.isEmpty()) {
|
if (sigValidTransactions.isEmpty()) {
|
||||||
// Don't bother locking if there are no new transactions to process
|
// Don't bother locking if there are no new transactions to process
|
||||||
|
Loading…
x
Reference in New Issue
Block a user