mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 12:17:58 +00:00
Sync: validate block responses for required data (#5052)
* Less verbose state-db logging * Validate block responses for block bodies * Update client/network/src/protocol.rs Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com> * Added validation test * Disconnect on missing header as well * Typo Co-Authored-By: André Silva <andre.beat@gmail.com> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by: André Silva <andre.beat@gmail.com>
This commit is contained in:
@@ -751,7 +751,7 @@ impl<B: BlockT> ChainSync<B> {
|
||||
| PeerSyncState::DownloadingFinalityProof(..) => Vec::new()
|
||||
}
|
||||
} else {
|
||||
// When request.is_none() just accept blocks
|
||||
// When request.is_none() this is a block announcement. Just accept blocks.
|
||||
blocks.into_iter().map(|b| {
|
||||
IncomingBlock {
|
||||
hash: b.hash,
|
||||
|
||||
Reference in New Issue
Block a user