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

Nethermind UI (initial) #8109

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Nethermind UI (initial) #8109

wants to merge 3 commits into from

Conversation

benaadams
Copy link
Member

@benaadams benaadams commented Jan 27, 2025

Changes

  • First iteration of a Nethermind UI, so users don't need access to console, have to install Seq or Grafana to monitor what is going on with their node
  • Mapped when Health checks UI is mapped
image

Types of changes

What types of changes does your code introduce?

  • New feature (a non-breaking change that adds functionality)

Testing

Requires testing

  • No

Documentation

Requires documentation update

  • Yes

@benaadams benaadams added the ux label Jan 27, 2025
@benaadams benaadams changed the title Nethermind UI Nethermind UI (initial) Jan 27, 2025
Copy link
Member

@LukaszRozmej LukaszRozmej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to move from Nethermind.Runner to a plugin

Comment on lines +1562 to +1563
var finalizedNumber = FindHeader(FinalizedHash, BlockTreeLookupOptions.DoNotCreateLevelIfMissing)?.Number;
var safeNumber = FindHeader(safeBlockHash, BlockTreeLookupOptions.DoNotCreateLevelIfMissing)?.Number;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

potentially two lookups when we aren't sure if anyone is listening, seems wasteful?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ForkChoiceHandler has already looked them up; however need to work out how to plumb it through

@@ -63,6 +63,7 @@ public sealed class BlockchainProcessor : IBlockchainProcessor, IBlockProcessing
private readonly Stopwatch _stopwatch = new();

public event EventHandler<IBlockchainProcessor.InvalidBlockEventArgs>? InvalidBlock;
public event EventHandler<BlockStatistics>? NewProcessingStatistics;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just pass through add/remove for simplicity?

@@ -41,3 +61,114 @@ public static void EnableConsoleColorOutput()
[DllImport("kernel32.dll")]
private static extern bool SetConsoleMode(IntPtr hConsoleHandle, uint dwMode);
}


public sealed class LineInterceptingTextWriter : TextWriter
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need that? Doesn't NLog have something that would make it simpler for us?

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.

2 participants