forked from aptos-labs/aptos-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[enhancement] Refactor libra_channel interface to add an explicit Key
Summary The current libra_channel interface is agnostic of the concept of a Key. We have pushed the abstraction of Key to ValidatorMessage trait which forces each message to implement a trait which returns AccountAddress This PR updates the libra_channel interface to accept an arbitrary Key in its put() method which will make it easy on the Sender side to add messages. The Sender side will no longer be forced to implement ValidatorMessage trait. With this design, we do leak the concept of a Key explicitly to the sender, but we were not hiding it very well with the ValidatorMessage trait either. Test Plan Updated unit tests Closes: aptos-labs#1500 Approved by: ankushagarwal
- Loading branch information
1 parent
6ce120b
commit cee5949
Showing
4 changed files
with
161 additions
and
142 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
Oops, something went wrong.