@@ -41,6 +41,7 @@ type Backend struct {
4141	builderSecretKey             * bls.SecretKey 
4242	builderPublicKey             boostTypes.PublicKey 
4343	serializedBuilderPoolPubkey  hexutil.Bytes 
44+ 	fd                           ForkData 
4445	builderSigningDomain         boostTypes.Domain 
4546	proposerSigningDomain        boostTypes.Domain 
4647	enableBeaconChecks           bool 
@@ -56,7 +57,13 @@ type Backend struct {
5657	indexTemplate  * template.Template 
5758}
5859
59- func  NewBackend (sk  * bls.SecretKey , bc  IBeaconClient , builderSigningDomain  boostTypes.Domain , proposerSigningDomain  boostTypes.Domain , enableBeaconChecks  bool ) * Backend  {
60+ type  ForkData  struct  {
61+ 	GenesisForkVersion     string 
62+ 	BellatrixForkVersion   string 
63+ 	GenesisValidatorsRoot  string 
64+ }
65+ 
66+ func  NewBackend (sk  * bls.SecretKey , bc  IBeaconClient , fd  ForkData , builderSigningDomain  boostTypes.Domain , proposerSigningDomain  boostTypes.Domain , enableBeaconChecks  bool ) * Backend  {
6067	pkBytes  :=  bls .PublicKeyFromSecretKey (sk ).Compress ()
6168	pk  :=  boostTypes.PublicKey {}
6269	pk .FromSlice (pkBytes )
@@ -77,6 +84,7 @@ func NewBackend(sk *bls.SecretKey, bc IBeaconClient, builderSigningDomain boostT
7784		builderPublicKey :            pk ,
7885		serializedBuilderPoolPubkey : pkBytes ,
7986
87+ 		fd :                    fd ,
8088		builderSigningDomain :  builderSigningDomain ,
8189		proposerSigningDomain : proposerSigningDomain ,
8290		enableBeaconChecks :    enableBeaconChecks ,
@@ -107,10 +115,16 @@ func (b *Backend) handleIndex(w http.ResponseWriter, req *http.Request) {
107115	}
108116
109117	statusData  :=  struct  {
110- 		NoValidators  int 
111- 		Header        string 
112- 		Blocks        string 
113- 	}{noValidators , string (headerData ), string (payloadData )}
118+ 		Pubkey                 string 
119+ 		NoValidators           int 
120+ 		GenesisForkVersion     string 
121+ 		BellatrixForkVersion   string 
122+ 		GenesisValidatorsRoot  string 
123+ 		BuilderSigningDomain   string 
124+ 		ProposerSigningDomain  string 
125+ 		Header                 string 
126+ 		Blocks                 string 
127+ 	}{hexutil .Encode (b .serializedBuilderPoolPubkey ), noValidators , b .fd .GenesisForkVersion , b .fd .BellatrixForkVersion , b .fd .GenesisValidatorsRoot , hexutil .Encode (b .builderSigningDomain [:]), hexutil .Encode (b .proposerSigningDomain [:]), string (headerData ), string (payloadData )}
114128
115129	if  err  :=  b .indexTemplate .Execute (w , statusData ); err  !=  nil  {
116130		http .Error (w , err .Error (), http .StatusInternalServerError )
0 commit comments