Skip to content

Log improvements 4.0.3#334

Merged
SurfingNerd merged 7 commits intoDMDcoin:4.0from
SurfingNerd:log-improvements-4.0.3
Mar 18, 2026
Merged

Log improvements 4.0.3#334
SurfingNerd merged 7 commits intoDMDcoin:4.0from
SurfingNerd:log-improvements-4.0.3

Conversation

@SurfingNerd
Copy link
Collaborator

This pull request primarily improves code clarity and maintainability in the consensus and mining components by adding explanatory comments, refining log messages, and removing unused or obsolete code paths. The changes help document tricky edge cases, clarify logging output, and streamline the engine's update process.

Comments and Documentation Improvements:

  • Added detailed comments in TransactionQueue::pending and HoneyBadgerBFT::propose_block to explain potential race conditions where the transaction pool cache may be stale after block import, and to clarify the implications of transaction pool maintenance timing. [1] [2]

Logging Enhancements:

  • Improved log message in HbbftEarlyEpochEndManager to more clearly state why early epoch end reports are skipped, now referencing elapsed time since the last block rather than ambiguous timestamps.
  • Changed a log level from info! to debug! in EthSync for errors encountered while sending consensus messages, reducing unnecessary log noise and clarifying the node context.

Code Cleanup and Refactoring:

  • Removed an unused block of code in HoneyBadgerBFT::set_signer that previously attempted to update the HoneyBadger state and log issues if the client was not yet set, simplifying the signer update logic.

This needs further investigation about the theory, that the empty blocks are the result of a Nodes proposing transactions that were already imported in the last block, but the `best_transactions` data has not been updated yet.
Also investigate if Nonce Gaps in normal transactions or service transactions are leading to proposals.
is `best_transactions` already a collection that is filtered for nonce gaps ?!
…ne, we do not need to call update_honeybadger here.
@SurfingNerd SurfingNerd merged commit d06fc04 into DMDcoin:4.0 Mar 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant