python_blockchain_app icon indicating copy to clipboard operation
python_blockchain_app copied to clipboard

Node Register - Own node_adress never returned

Open gerardkm94 opened this issue 5 years ago • 3 comments

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!

gerardkm94 avatar Mar 22 '20 13:03 gerardkm94

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 avatar Mar 22 '20 14:03 satwikkansal

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.

fabiankirstein avatar May 24 '20 13:05 fabiankirstein

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.

satwikkansal avatar Sep 15 '20 12:09 satwikkansal