Skip to content

Commit f5de795

Browse files
manav2401kamuikatsurgi
authored andcommitted
polygon/sync: announce blocks/hashes for blocks received via hash announcements (#44)
1 parent 62dff6c commit f5de795

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

polygon/sync/sync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ func (s *Sync) applyNewBlockChainOnTip(ctx context.Context, blockChain []*types.
413413
return err
414414
}
415415

416-
if source == EventSourceP2PNewBlock {
416+
if source == EventSourceP2PNewBlock || source == EventSourceP2PNewBlockHashes {
417417
// https://github.com/ethereum/devp2p/blob/master/caps/eth.md#block-propagation
418418
// devp2p spec: After the header validity check, the client imports the block into its local chain by executing
419419
// all transactions contained in the block, computing the block's 'post state'. The block's state-root hash

0 commit comments

Comments
 (0)