christianskovly / pieChain

Basic blockchain for raspi
0 stars 0 forks source link

Add Nodes for Blockchain Dapp #13

Open choir27 opened 3 months ago

choir27 commented 3 months ago

User should be able to add/create nodes

Look at registerAndBroadcastNode method in MVC-OOP-MVMM branch to see how node information is broadcast to other nodes in list.

To see node broadcasing new node information to other nodes in the list, see registerNode method in MVC-OOP-MVMM branch.

christianskovly commented 3 months ago

in file networkNode.js line 147 you will see the add network node code. It sends the information to the end point '/register-and-broadcast-node'. The node then broadcasts new node info to add the other nodes in list. You can see this at line 182 in networkNode.js

choir27 commented 3 months ago

Gotcha, thanks for the clarification!