-
Notifications
You must be signed in to change notification settings - Fork 473
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
base: master
Are you sure you want to change the base?
Nethermind UI (initial) #8109
Conversation
There was a problem hiding this 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
var finalizedNumber = FindHeader(FinalizedHash, BlockTreeLookupOptions.DoNotCreateLevelIfMissing)?.Number; | ||
var safeNumber = FindHeader(safeBlockHash, BlockTreeLookupOptions.DoNotCreateLevelIfMissing)?.Number; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
Changes
Types of changes
What types of changes does your code introduce?
Testing
Requires testing
Documentation
Requires documentation update