-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add msg tag to the DHT header to enable traces across nodes. #1881
Conversation
43382c3
to
5c05d12
Compare
4c34c22
to
d426174
Compare
7f84db9
to
f555048
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Main comment is that I think you should be consistent and change Message Trace to MessageTag both in the type and the log labels to make it clear what it is and to conform to how it is used and referred to in the rest of the code.
base_layer/wallet/src/transaction_service/protocols/transaction_send_protocol.rs
Show resolved
Hide resolved
base_layer/wallet/src/transaction_service/protocols/transaction_send_protocol.rs
Show resolved
Hide resolved
base_layer/wallet/src/transaction_service/protocols/transaction_send_protocol.rs
Show resolved
Hide resolved
…inating `msg tag` as the transaction protocol is executed.
676d74b
to
e1e555c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Enabling tracking of messages across nodes during testnet.
Example trace across nodes:
Sender stage 1
Receiver stage 1
Receiver stage 2
Sender stage 2
Motivation and Context
Sometimes messages disappear between nodes; this change to enable tracking messages across nodes during testnet by inserting the originating message tag into the DHT header.
How Has This Been Tested?
Tested between 2x Windows and 1x Linux nodes.
Types of changes
Checklist:
development
branch.cargo-fmt --all
before pushing.