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

[node-split] Improve separation between server and client mode #6521

Open
wants to merge 6 commits into
base: node-split-poc
Choose a base branch
from

Conversation

jellonek
Copy link
Contributor

@jellonek jellonek commented Dec 5, 2024

Extracted from #6506 and repased on top of current node-split-poc branch.

... which are required by systest
@jellonek jellonek marked this pull request as ready for review December 13, 2024 09:40
activation/activation.go Outdated Show resolved Hide resolved
@@ -390,7 +390,8 @@ func (mgr *PostSetupManager) commitmentAtx(ctx context.Context, dataDir string,
}

// if this node has not published an ATX select the best ATX with `findCommitmentAtx`
return mgr.findCommitmentAtx(ctx)
// TODO: replace with highestATX api call
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a note for later: the node-service already has an endpoint to query a positioning ATX. This can be used for the commitment ATX (it would be the same ATX).

node/node.go Outdated Show resolved Hide resolved
@@ -1526,20 +1560,30 @@ func (app *App) listenToUpdates(ctx context.Context) {
}

func (app *App) startServices(ctx context.Context) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

How about having:

func (app *App) startNodeServices(ctx context.Context) error {} // for node-service
func (app *App) startSmeshingServices(ctx context.Context) error {} // for smesher-service

Then don't check against nil inside. The code would crash if a service expected to be started in a given configuration weren't configured instead of silently not being started at all.

Copy link
Contributor Author

@jellonek jellonek Dec 13, 2024

Choose a reason for hiding this comment

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

That's the plan for future non-PoC version. Moreover the plan is to have separate entry points/binaries for bootstrap, normal mode, server mode, client mode.

@jellonek jellonek force-pushed the nodesplit/tuneseparation branch 5 times, most recently from 660b15c to c758264 Compare December 13, 2024 14:37
spacemesh-bors bot added a commit that referenced this pull request Dec 13, 2024
@spacemesh-bors
Copy link

try

Build failed:

@jellonek jellonek force-pushed the nodesplit/tuneseparation branch from c758264 to c1615a0 Compare December 13, 2024 15:28
@jellonek jellonek force-pushed the nodesplit/tuneseparation branch from c7fb9b3 to 0b54bcd Compare December 14, 2024 19:49
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