Skip to content

Conversation

@giurgiur99
Copy link
Contributor

@giurgiur99 giurgiur99 commented Oct 29, 2025

Fixes #140

Changes proposed in this PR:

  • Replace node url with peer id
  • Use compute1 as leader node. Connection to other nodes are managed through /directCommand
  • fix tests

@giurgiur99 giurgiur99 marked this pull request as ready for review October 30, 2025 11:50

const MAX_RETRIAL_NUMBER = 5;

export const directNodeCommand = async (command: string, peerId: string, body: any, signerOrAuthToken?: Signer | string | null, retrialNumber: number = 0): Promise<any> => {
Copy link
Member

Choose a reason for hiding this comment

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

I think it would be cleaner to have the command as an enum instead of a string

@giurgiur99 giurgiur99 merged commit a322127 into main Dec 3, 2025
1 check passed
@giurgiur99 giurgiur99 deleted the peer-id branch December 3, 2025 07:05
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.

PeerId and direct command (config page and extension)

4 participants