added base simulation

This commit is contained in:
2025-04-29 23:28:33 +01:00
parent d79c28c32f
commit 9f4cb9af02
7 changed files with 313 additions and 0 deletions

14
Simulation/test.py Normal file
View File

@@ -0,0 +1,14 @@
from library import *
if __name__ == "__main__":
P2PRCNodes = ListNodes()
# Print nodes in the network
print(P2PRCNodes)
# Add custom information to the network
if AddCustomInformation("Test"):
print("It worked")
if AddRootNode("0.0.0.0", "8081"):
print("It worked for adding root node")