This repository was archived by the owner on Oct 25, 2024. It is now read-only.
File tree 1 file changed +13
-4
lines changed
1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -204,10 +204,6 @@ type BuilderBlockValidationRequestV3 struct {
204
204
RegisteredGasLimit uint64 `json:"registered_gas_limit,string"`
205
205
}
206
206
207
- type BuilderBlockValidationResponse struct {
208
- BlockValue * uint256.Int `json:"block_value"`
209
- }
210
-
211
207
func (r * BuilderBlockValidationRequestV3 ) UnmarshalJSON (data []byte ) error {
212
208
params := & struct {
213
209
ParentBeaconBlockRoot common.Hash `json:"parent_beacon_block_root"`
@@ -229,6 +225,19 @@ func (r *BuilderBlockValidationRequestV3) UnmarshalJSON(data []byte) error {
229
225
return nil
230
226
}
231
227
228
+ type BuilderBlockValidationResponse struct {
229
+ BlockValue * uint256.Int
230
+ }
231
+
232
+ func (r * BuilderBlockValidationResponse ) MarshalJSON () ([]byte , error ) {
233
+ type validationResponseJSON struct {
234
+ BlockValue string `json:"block_value"`
235
+ }
236
+ return json .Marshal (& validationResponseJSON {
237
+ BlockValue : fmt .Sprintf ("%d" , r .BlockValue ),
238
+ })
239
+ }
240
+
232
241
func (api * BlockValidationAPI ) ValidateBuilderSubmissionV3 (params * BuilderBlockValidationRequestV3 ) (* BuilderBlockValidationResponse , error ) {
233
242
// TODO: fuzztest, make sure the validation is sound
234
243
payload := params .ExecutionPayload
You can’t perform that action at this time.
0 commit comments