Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions packages/beacon-node/src/network/processor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ export class NetworkProcessor {
// we may not receive the block for messages like Attestation and SignedAggregateAndProof messages, in that case PendingGossipsubMessage needs
// to be stored in this Map and reprocessed once the block comes
private readonly awaitingMessagesByBlockRoot: MapDef<RootHex, Set<PendingGossipsubMessage>>;
// we may not receive the payload for messages like payload_attestation_message messages, in that case PendingGossipsubMessage needs
// to be stored in this Map and reprocessed once the payload comes
// we may not receive the payload for messages that require the FULL payload variant to be processed,
// in that case PendingGossipsubMessage needs to be stored in this Map and reprocessed once the payload comes
private readonly awaitingMessagesByPayloadBlockRoot: MapDef<RootHex, Set<PendingGossipsubMessage>>;
private unknownBlocksBySlot = new MapDef<Slot, Set<RootHex>>(() => new Set());
private unknownEnvelopesBySlot = new MapDef<Slot, Set<RootHex>>(() => new Set());
Expand Down Expand Up @@ -417,12 +417,14 @@ export class NetworkProcessor {
if (root == null) break;
const payloadPresent = getPayloadPresentFromPayloadAttestationMessageSerialized(message.msg.data);
if (payloadPresent && !this.chain.forkChoice.hasPayloadHexUnsafe(root)) {
// payload attestation votes that the payload is available but it is not yet known
this.searchUnknownEnvelope(
{slot, root},
BlockInputSource.network_processor,
message.propagationSource.toString()
);
preprocessResult = {action: PreprocessAction.AwaitEnvelope, root};
// do not await the envelope, payload attestation processing only requires that the block is known
// also do not reset preprocessResult, we may already await for the block
Comment thread
nflaig marked this conversation as resolved.
}
break;
}
Expand Down
Loading