Log missing chain head as warning, not trace (#6127)

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
This commit is contained in:
Matt Whitehead
2023-11-06 18:10:22 +00:00
committed by GitHub
parent 646c5a3bc6
commit 83ae69a6fa

View File

@@ -273,7 +273,7 @@ public class TransactionPool implements BlockAddedObserver {
return ValidationResult.invalid(rejectReason);
}
} else {
LOG.atTrace()
LOG.atWarn()
.setMessage("Discard invalid transaction {}, reason {}")
.addArgument(transaction::toTraceLog)
.addArgument(validationResult.result::getInvalidReason)
@@ -420,7 +420,7 @@ public class TransactionPool implements BlockAddedObserver {
final BlockHeader chainHeadBlockHeader = getChainHeadBlockHeader().orElse(null);
if (chainHeadBlockHeader == null) {
LOG.atTrace()
LOG.atWarn()
.setMessage("rejecting transaction {} due to chain head not available yet")
.addArgument(transaction::getHash)
.log();