-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update code to handle new node management and fix some bugs.
This commit fixes a few bugs and updates the code to handle new node management. It fixes the logic for determining the number of messages a client should send and updates the logic for handling onions in the client. It also includes some logging to help with debugging. The `StartRuns` function now correctly signals nodes to start and returns an error if an error occurs. The `formOnions` function now correctly determines the routing path for each message and logs the routing path. The `startRun` function now correctly sends onions to the first node and logs the message if an error occurs. The `Receive` function now correctly removes the outermost layer of an onion and logs an error if the onion is invalid. The `HandleStartRun` function now logs the result of starting a run and the `start` function now correctly sends onions to all nodes.
- Loading branch information
1 parent
c6714a8
commit ba34310
Showing
7 changed files
with
69 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters