ChainSafe/nodewatch-api

Fix Agent Details

Closed this issue · 0 comments

Different Eth2 clients returning agent details in different format. Due to this, information stored in the database is inconsistent. In some case agent name is empty. Possibly because some clients return agent details in /name/version/os format.

In addition to that,

  • we need to store representable the OS names. i.e. convert aarch64-macos to Mac and x86_64-linux to Linux
  • we need to store just the client version. i.e. convert v1.0.2-f7183098 to v1.0.2