Skip to content

Commit

Permalink
add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxbin committed Oct 20, 2020
1 parent bfebc50 commit f23c681
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/network/src/sync.rs
Expand Up @@ -144,6 +144,13 @@ impl<B: BlockT> PendingJustifications<B> {
self.pending_requests.push_back(request);
}

println!("debug dispatch");
println!("peer_requests: {:?}", self.peer_requests);
println!("pending_requests: {:?}", self.pending_requests);
println!("peers: {:?}", peers);
println!("justifications: {:?}", self.justifications.roots().collect::<Vec<_>>());
println!("debug dispatch end");

if self.pending_requests.is_empty() {
return;
}
Expand Down

0 comments on commit f23c681

Please sign in to comment.