christianskovly / pieChain

Basic blockchain for raspi
0 stars 0 forks source link

Add Nodes for Blockchain Dapp #13

Open choir241 opened 8 months ago

choir241 commented 8 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 8 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

choir241 commented 8 months ago

Gotcha, thanks for the clarification!