Update to latest libp2p

This commit is contained in:
Age Manning 2019-04-03 17:13:55 +11:00
parent 7920f8098f
commit 2d710f19fc
No known key found for this signature in database
GPG Key ID: 05EED64B79E06A93
2 changed files with 6 additions and 1 deletions

View File

@ -8,7 +8,7 @@ edition = "2018"
beacon_chain = { path = "../beacon_chain" } beacon_chain = { path = "../beacon_chain" }
clap = "2.32.0" clap = "2.32.0"
# SigP repository until PR is merged # SigP repository until PR is merged
libp2p = { git = "https://github.com/SigP/rust-libp2p", rev = "b3c32d9a821ae6cc89079499cc6e8a6bab0bffc3" } libp2p = { git = "https://github.com/SigP/rust-libp2p", rev = "fb852bcc2b9b3935555cc93930e913cbec2b0688" }
types = { path = "../../eth2/types" } types = { path = "../../eth2/types" }
serde = "1.0" serde = "1.0"
serde_derive = "1.0" serde_derive = "1.0"

View File

@ -533,6 +533,11 @@ impl<T: BeaconChainTypes> SimpleSync<T> {
// Add this block to the queue // Add this block to the queue
self.import_queue self.import_queue
.enqueue_full_blocks(vec![block], peer_id.clone()); .enqueue_full_blocks(vec![block], peer_id.clone());
trace!(
self.log,
"NewGossipBlock";
"peer" => format!("{:?}", peer_id),
);
// Unless the parent is in the queue, request the parent block from the peer. // Unless the parent is in the queue, request the parent block from the peer.
// //