-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sim-all: logs aliases and pks if both are known
This commit redefines what data about a node is passed along to the simulator on activities. Previously, we used to pass only the src/dst `PublicKey`. However, by doing this we had no way of logging (nor accessing) any other information about them. This is mainly because all this mapping is only available on `sim-cli::main.rs`, and also because the data is mostly logged by the producers/consumers functions, which are not even part or the `Simulator` class. Therefore, the alternative we are left with are passing the information to the simulator. This can be done in several ways, I've gone with the one that has a better balance between codediff and usefulness, which is passing `NodeInfo` along. This, however, means having to obtain the destination node features on `main` instead of on `validation`.
- Loading branch information
Showing
5 changed files
with
154 additions
and
130 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
Oops, something went wrong.