-
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 client and node configurations to accommodate new features and…
… fixes. This commit refactors the client and node configurations to remove hardcoded values and adapt to changes in the onion routing system. Specifically, it updates the `num_rounds` value in the `config/config.yml` file to 5. Additionally, the `AddOnion` and `AddReceived` functions in the `clientStatus.go` file were updated to include new fields and handle checkpoint onions correctly. The `nodes` and `checkpointOnions` functionality was also fixed in the `nodeStatus.go` file. The `Client` struct in `client.go` was updated to handle dummy messages and calculate the checksum of the onion. Furthermore, the `Receive` function in the `node.go` file was fixed to correctly handle peeled onions. Finally, the `NewNode` function in the `node.go` file was updated to include the expected checkpoints and handle the creation of new nodes.
- Loading branch information
1 parent
92ad93f
commit d45fa9b
Showing
16 changed files
with
433 additions
and
143 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
Oops, something went wrong.