Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more tracing logs to transaction pool #4413

Closed
wants to merge 6 commits into from

Conversation

fab-10
Copy link
Contributor

@fab-10 fab-10 commented Sep 20, 2022

Signed-off-by: Fabio Di Fabio fabio.difabio@consensys.net

PR description

This PR only adds trace logs that are useful for debbuging the empty blocks issues, indeed using these new trace logs it was possible to improve the transaction pool in #4425

Fixed Issue(s)

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if
    updates are required.

Changelog

@lgtm-com
Copy link

lgtm-com bot commented Sep 20, 2022

This pull request introduces 4 alerts when merging 98d19df into 5e15625 - view on LGTM.com

new alerts:

  • 2 for Unused format argument
  • 2 for Missing format argument

@fab-10 fab-10 force-pushed the tx-pool-tracing branch 4 times, most recently from 4b5f43b to c438ebc Compare September 20, 2022 13:00
LOG,
"Adding {} to pending transactions, range type {}",
transactionInfo::toTraceLog,
kind::toString);

Check notice

Code scanning / CodeQL

Useless toString on String

Redundant call to 'toString' on a String object.
@fab-10 fab-10 force-pushed the tx-pool-tracing branch 3 times, most recently from 87aa77d to 11e4a6d Compare September 20, 2022 14:05
LOG,
"Evicted {} due to too many transactions from sender {}",
tx::toTraceLog,
senderTxInfos::toString));

Check notice

Code scanning / CodeQL

Use of default toString()

Default toString(): TransactionsForSenderInfo inherits toString() from Object, and so is not suitable for printing.
@fab-10 fab-10 force-pushed the tx-pool-tracing branch 5 times, most recently from dc9ac05 to db4015c Compare September 20, 2022 16:51
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
# Conflicts:
#	CHANGELOG.md
#	ethereum/blockcreation/src/main/java/org/hyperledger/besu/ethereum/blockcreation/BlockTransactionSelector.java
#	ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/transactions/TransactionPool.java
#	ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/transactions/TransactionsForSenderInfo.java
#	ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/transactions/sorter/AbstractPendingTransactionsSorter.java
#	ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/transactions/sorter/BaseFeePendingTransactionsSorter.java
#	ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/transactions/TransactionPoolTest.java
@fab-10
Copy link
Contributor Author

fab-10 commented Sep 23, 2022

Closing this since it has been merged as part of #4425

@fab-10 fab-10 closed this Sep 23, 2022
@fab-10 fab-10 deleted the tx-pool-tracing branch September 23, 2022 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant