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 Register - Own node_adress never returned #31

Open
gerardkm94 opened this issue Mar 22, 2020 · 3 comments
Open

Node Register - Own node_adress never returned #31

gerardkm94 opened this issue Mar 22, 2020 · 3 comments
Labels
bug Something isn't working hacktoberfest

Comments

@gerardkm94
Copy link

When a new register is done (one node to another), the "parent" node, or the node who receives the request never returns its own node_adress. For that reason, on children Node will be always necessary to register first a node, and then syncing.

I'll open a new branch, but not sure if I'm missing something.

Ty!

@satwikkansal
Copy link
Owner

Ah yes, the parent node should be updated too in the register_with API here. Thanks for pointing this out.

I'll open a new branch, but not sure if I'm missing something.

That'd be great, thanks again.

@satwikkansal satwikkansal added the bug Something isn't working label Mar 22, 2020
@fabiankirstein
Copy link

Hello! I also came across this bug. I was about to fix it, but I'm also not sure about the general concept here. Is every node suppose to store every address of all other nodes? And what is about the own address of one node? I guess it should not be part of the peers set.

@satwikkansal
Copy link
Owner

satwikkansal commented Sep 15, 2020

Hi! Sorry for the late response.

Is every node suppose to store every address of all other nodes?

If the network is large (1000s of nodes), that'd be an inefficent way. Usually, there's some variation of gossip protocol for broadcasting that's implemented, I'm not certain about the specifics though.

And what is about the own address of one node? I guess it should not be part of the peers set.

Yes, that's true, it should not be a part of peers set, but for the set up in this project we should add it to the response when some new node registers via it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hacktoberfest
Projects
None yet
Development

No branches or pull requests

3 participants