Skip to content

Commit

Permalink
Added logging relating to unconfirmed transactions.
Browse files Browse the repository at this point in the history
  • Loading branch information
archived-2 committed Aug 2, 2023
1 parent 33cfd02 commit 528583f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/qortal/controller/BlockMinter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 528583f

Please sign in to comment.