nice-node icon indicating copy to clipboard operation
nice-node copied to clipboard

feat: client sync percentage & dynamic RPC handling

Open corn-potage opened this issue 1 year ago • 1 comments

It's been awhile since I've worked on this so it's a little difficult to provide specifics 🥲

  • Enabled client cards on Node screen
  • Add different port to new node if it already exists in configs
  • Removed hardcoded RPC addresses, and implemented dynamic RPC handling

Note:

  • Some client sync percentages may not work properly due to differences in clients and how they process sync status. Will require a handler for each case.
  • Not with my Linux box to confirm, but I remember seeing a bug where the same client stats is shown when changing node package view in the initial sync stage. I remember it fixing itself when the node is done syncing beyond a certain point.

corn-potage avatar Mar 26 '24 23:03 corn-potage

Deploy Preview for nndesign ready!

Name Link
Latest commit 6b6601d16727b8195462f548c7a7827cd93369ec
Latest deploy log https://app.netlify.com/sites/nndesign/deploys/664fa85e625c9300087e9bf4
Deploy Preview https://deploy-preview-523--nndesign.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Mar 26 '24 23:03 netlify[bot]

Several notes:

  1. I found a bug running Besu. If I run an Ethereum package already, and create a new one with Besu, the same port is being set to HTTP API and WS which results in a crash - normally, this would be okay as long as rpc-ws-enabled is false, but it's set to true, so it doesn't work, as expected. The actual bug is that the same port is being set - something must be wrong when assigning new ports to the node. I'll have to take a closer look.

  2. Found another issue, where if I stop the nodes, change the WS Enabled setting to true, restart the node from Node Package view, and look at Besu logs, it shows: Error: no container with name or ID "XXXXXXX" found: no such container @jgresham

  3. Saw multiple re-renders in the node package with the rpcExecution calls, and sometimes see that httpPort is missing in order for rpcExecution to work; will need to look into this...

corn-potage avatar May 04 '24 19:05 corn-potage

Really looking forward to these two major feat/fixes!

Add different port to new node if it already exists in configs Removed hardcoded RPC addresses, and implemented dynamic RPC handling

jgresham avatar May 22 '24 16:05 jgresham