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

chore: Remove running multiple fp instances support #86

Merged
merged 4 commits into from
Oct 10, 2024

Conversation

gitferry
Copy link
Member

@gitferry gitferry commented Oct 8, 2024

This PR partly addresses #34 by disallowing running multiple fp instances within the fp manager. Keyring level improvement will be done in a separate PR to address #63. Notable changes in this PR:

  1. Remove MaxNumFinalityProviders from config as it is not applicable
  2. If --eots-pk is not specified in fpd start, fp app will start without any fp instances. To run a fp instance, --eots-pk must be given
  3. fp manager only keeps a single fp instance instead of a map

@gitferry gitferry force-pushed the gai/remove-multiple-fp-support branch from 8088f44 to 7619727 Compare October 8, 2024 09:51
@gitferry gitferry force-pushed the gai/remove-multiple-fp-support branch from 7619727 to 72fb47f Compare October 8, 2024 10:09
@gitferry gitferry force-pushed the gai/remove-multiple-fp-support branch from b5d4a20 to b3fd5af Compare October 9, 2024 05:25
@gitferry gitferry marked this pull request as ready for review October 9, 2024 05:35
@gitferry gitferry requested review from SebastianElvis, RafilxTenfen, Lazar955 and KonradStaniec and removed request for RafilxTenfen October 9, 2024 05:36
Copy link
Contributor

@RafilxTenfen RafilxTenfen left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@SebastianElvis SebastianElvis left a comment

Choose a reason for hiding this comment

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

Some questions on whether we can cut more code further, but no blocker

finality-provider/cmd/fpd/daemon/start.go Show resolved Hide resolved
finality-provider/service/app.go Show resolved Hide resolved
finality-provider/service/fp_manager.go Show resolved Hide resolved
@gitferry
Copy link
Member Author

Merging this PR for now. Will address the remaining comments in a separate PR

@gitferry gitferry merged commit 9232072 into main Oct 10, 2024
11 checks passed
@gitferry gitferry deleted the gai/remove-multiple-fp-support branch October 10, 2024 02:52
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.

4 participants