From 528583fe381287c71597ed5a123a66512d6c37b4 Mon Sep 17 00:00:00 2001 From: CalDescent Date: Wed, 2 Aug 2023 21:32:57 +0100 Subject: [PATCH] Added logging relating to unconfirmed transactions. --- src/main/java/org/qortal/controller/BlockMinter.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/qortal/controller/BlockMinter.java b/src/main/java/org/qortal/controller/BlockMinter.java index deb00587f..b1ed7e3c5 100644 --- a/src/main/java/org/qortal/controller/BlockMinter.java +++ b/src/main/java/org/qortal/controller/BlockMinter.java @@ -380,9 +380,13 @@ public void run() { parentSignatureForLastLowWeightBlock = null; timeOfLastLowWeightBlock = null; + Long unconfirmedStartTime = NTP.getTime(); + // Add unconfirmed transactions addUnconfirmedTransactions(repository, newBlock); + LOGGER.info(String.format("Adding %d unconfirmed transactions took %d ms", newBlock.getTransactions().size(), (NTP.getTime()-unconfirmedStartTime))); + // Sign to create block's signature newBlock.sign();