-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
request response for get transactions & sealed header from p2p network #919
Conversation
# Conflicts: # crates/types/src/services/p2p.rs
Use `PeerId`
Fixed unit test with deadlock.
Co-authored-by: Brandon Kite <brandonkite92@gmail.com>
…t_transactions_from_peer
…beak/heartbeat_protocol
…t_transactions_from_peer
Note: the PR is not that big, it contains small refactors and better naming apart from the needed changes |
…:FuelLabs/fuel-core into leviathanbeak/get_transactions_from_peer
Co-authored-by: ControlCplusControlV <44706811+ControlCplusControlV@users.noreply.github.com>
@@ -1275,7 +1287,7 @@ mod tests { | |||
tokio::select! { | |||
message_sent = rx_test_end.recv() => { | |||
// we received a signal to end the test | |||
assert_eq!(message_sent, Some(true), "Received wrong block height!"); | |||
assert_eq!(message_sent, Some(true), "Receuved incorrect or missing missing messsage"); |
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.
[nit]
assert_eq!(message_sent, Some(true), "Receuved incorrect or missing missing messsage"); | |
assert_eq!(message_sent, Some(true), "Received incorrect or missing missing messsage"); |
Assertion seems to be failing here, although it make sense with p2p
being disabled that p2p failed
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.
there is something wrong with Request::Transactions
test others are passing, if no one solves it by tomorrow I will try it.
It seems the request doesn't even go through, the node gets disconnected every time I re-ran it with Transactions, other requests pass which is (slightly) weird
closes #878 #877
The work has been done on 2 (now merged) branches, by @freesig and myself.