File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
yarn-project/p2p/src/client Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -338,8 +338,13 @@ export class P2PClient<T extends P2PClientType = P2PClientType.Full>
338338 [ Attributes . BLOCK_ARCHIVE ] : proposal . archive . toString ( ) ,
339339 [ Attributes . P2P_ID ] : ( await proposal . p2pMessageLoggingIdentifier ( ) ) . toString ( ) ,
340340 } ) )
341- public broadcastCheckpointProposal ( proposal : CheckpointProposal ) : Promise < void > {
341+ public async broadcastCheckpointProposal ( proposal : CheckpointProposal ) : Promise < void > {
342342 this . log . verbose ( `Broadcasting checkpoint proposal for slot ${ proposal . slotNumber } to peers` ) ;
343+ const blockProposal = proposal . getBlockProposal ( ) ;
344+ if ( blockProposal ) {
345+ // Store our own last-block proposal so we can respond to req/resp requests for it.
346+ await this . attestationPool . addBlockProposal ( blockProposal ) ;
347+ }
343348 return this . p2pService . propagate ( proposal ) ;
344349 }
345350
You can’t perform that action at this time.
0 commit comments