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

[WIP] feat: improve validator fetch logic #194

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

Conversation

onmax
Copy link
Member

@onmax onmax commented Nov 20, 2024

We load the validators api in two occasions:

  1. When we run launchNetwork
  2. In new epochs

The webclient when we subscribe to blocks, some of them will be on already ended epochs, so the wallet will update the epoch number two times.

@onmax onmax requested a review from sisou November 20, 2024 11:03
@onmax onmax changed the title feat: improve validator fetch logic [WIP] feat: improve validator fetch logic Nov 20, 2024
@onmax onmax force-pushed the onmax/validators-api-fetcher branch from e71cef3 to 78ccb1a Compare November 20, 2024 14:31

return {
src: 'logoPath' in props.validator
? `${config.staking.validatorsEndpoint}}/${props.validator.logoPath}` : undefined,
Copy link
Member

Choose a reason for hiding this comment

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

Is this deployed to validator-api yet? Or should we keep the fallback of logo?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is not deployed yet

src/network.ts Outdated Show resolved Hide resolved
src/network.ts Outdated Show resolved Hide resolved
src/network.ts Outdated Show resolved Hide resolved
src/network.ts Outdated Show resolved Hide resolved
<circle cx="8.25" cy="8.25" r="4.5" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.0"/>
<line x1="16.25" y1="16.25" x2="11.75" y2="11.75" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.0"/>
<circle cx="8.25" cy="8.25" r="4.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.0"/>
<line x1="16.25" y1="16.25" x2="11.75" y2="11.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.0"/>
Copy link
Member Author

Choose a reason for hiding this comment

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

we use this component in two places

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.

2 participants