5858
5959 # Cache the latest slot signature - the slot signature is used to determine
6060 # if the validator will be aggregating (in the near future)
61- slotSignature* : Option [tuple [slot: Slot , signature: ValidatorSig ]]
61+ slotSignature* : Opt [tuple [slot: Slot , signature: ValidatorSig ]]
62+
63+ # For the external payload builder; each epoch, the external payload
64+ # builder should be informed of current validators
65+ externalBuilderRegistration* : Opt [SignedValidatorRegistrationV1 ]
6266
6367 startSlot* : Slot
6468
@@ -93,8 +97,10 @@ proc addLocalValidator*(pool: var ValidatorPool, item: KeystoreData,
9397 index: Opt [ValidatorIndex ], slot: Slot ) =
9498 doAssert item.kind == KeystoreKind .Local
9599 let pubkey = item.pubkey
96- let v = AttachedValidator (kind: ValidatorKind .Local , pubkey: pubkey,
97- index: index, data: item, startSlot: slot)
100+ let v = AttachedValidator (
101+ kind: ValidatorKind .Local , pubkey: pubkey, index: index, data: item,
102+ externalBuilderRegistration: Opt .none SignedValidatorRegistrationV1 ,
103+ startSlot: slot)
98104 pool.validators[pubkey] = v
99105 notice " Local validator attached" , pubkey, validator = shortLog (v),
100106 start_slot = slot
@@ -109,9 +115,11 @@ proc addRemoteValidator*(pool: var ValidatorPool, item: KeystoreData,
109115 index: Opt [ValidatorIndex ], slot: Slot ) =
110116 doAssert item.kind == KeystoreKind .Remote
111117 let pubkey = item.pubkey
112- let v = AttachedValidator (kind: ValidatorKind .Remote , pubkey: pubkey,
113- index: index, data: item, clients: clients,
114- startSlot: slot)
118+ let v = AttachedValidator (
119+ kind: ValidatorKind .Remote , pubkey: pubkey, index: index, data: item,
120+ clients: clients,
121+ externalBuilderRegistration: Opt .none SignedValidatorRegistrationV1 ,
122+ startSlot: slot)
115123 pool.validators[pubkey] = v
116124 notice " Remote validator attached" , pubkey, validator = shortLog (v),
117125 remote_signer = $ item.remotes,
@@ -403,7 +411,7 @@ proc getSlotSignature*(v: AttachedValidator, fork: Fork,
403411 if signature.isErr:
404412 return signature
405413
406- v.slotSignature = some ((slot, signature.get))
414+ v.slotSignature = Opt . some ((slot, signature.get))
407415 return signature
408416
409417# https://github.com/ethereum/builder-specs/blob/v0.2.0/specs/builder.md#signing
0 commit comments