1
- use crate :: test_utils:: { DEFAULT_BUILDER_PAYLOAD_VALUE_WEI , DEFAULT_JWT_SECRET } ;
1
+ use crate :: test_utils:: DEFAULT_JWT_SECRET ;
2
2
use crate :: { Config , ExecutionLayer , PayloadAttributes } ;
3
3
use eth2:: types:: { BlobsBundle , BlockId , StateId , ValidatorId } ;
4
4
use eth2:: { BeaconNodeHttpClient , Timeouts , CONSENSUS_VERSION_HEADER } ;
@@ -543,7 +543,7 @@ pub fn serve<E: EthSpec>(
543
543
let mut message = match payload_response_type {
544
544
crate :: GetPayloadResponseType :: Full ( payload_response) => {
545
545
#[ allow( clippy:: type_complexity) ]
546
- let ( payload, _block_value , maybe_blobs_bundle, _maybe_requests ) : (
546
+ let ( payload, value , maybe_blobs_bundle, maybe_requests ) : (
547
547
ExecutionPayload < E > ,
548
548
Uint256 ,
549
549
Option < BlobsBundle < E > > ,
@@ -559,8 +559,9 @@ pub fn serve<E: EthSpec>(
559
559
blob_kzg_commitments : maybe_blobs_bundle
560
560
. map ( |b| b. commitments )
561
561
. unwrap_or_default ( ) ,
562
- value : Uint256 :: from ( DEFAULT_BUILDER_PAYLOAD_VALUE_WEI ) ,
562
+ value,
563
563
pubkey : builder. builder_sk . public_key ( ) . compress ( ) ,
564
+ execution_requests : maybe_requests. unwrap_or_default ( ) ,
564
565
} ) ,
565
566
ForkName :: Deneb => BuilderBid :: Deneb ( BuilderBidDeneb {
566
567
header : payload
@@ -570,23 +571,23 @@ pub fn serve<E: EthSpec>(
570
571
blob_kzg_commitments : maybe_blobs_bundle
571
572
. map ( |b| b. commitments )
572
573
. unwrap_or_default ( ) ,
573
- value : Uint256 :: from ( DEFAULT_BUILDER_PAYLOAD_VALUE_WEI ) ,
574
+ value,
574
575
pubkey : builder. builder_sk . public_key ( ) . compress ( ) ,
575
576
} ) ,
576
577
ForkName :: Capella => BuilderBid :: Capella ( BuilderBidCapella {
577
578
header : payload
578
579
. as_capella ( )
579
580
. map_err ( |_| reject ( "incorrect payload variant" ) ) ?
580
581
. into ( ) ,
581
- value : Uint256 :: from ( DEFAULT_BUILDER_PAYLOAD_VALUE_WEI ) ,
582
+ value,
582
583
pubkey : builder. builder_sk . public_key ( ) . compress ( ) ,
583
584
} ) ,
584
585
ForkName :: Bellatrix => BuilderBid :: Bellatrix ( BuilderBidBellatrix {
585
586
header : payload
586
587
. as_bellatrix ( )
587
588
. map_err ( |_| reject ( "incorrect payload variant" ) ) ?
588
589
. into ( ) ,
589
- value : Uint256 :: from ( DEFAULT_BUILDER_PAYLOAD_VALUE_WEI ) ,
590
+ value,
590
591
pubkey : builder. builder_sk . public_key ( ) . compress ( ) ,
591
592
} ) ,
592
593
ForkName :: Base | ForkName :: Altair => {
@@ -596,7 +597,7 @@ pub fn serve<E: EthSpec>(
596
597
}
597
598
crate :: GetPayloadResponseType :: Blinded ( payload_response) => {
598
599
#[ allow( clippy:: type_complexity) ]
599
- let ( payload, _block_value , maybe_blobs_bundle, _maybe_requests ) : (
600
+ let ( payload, value , maybe_blobs_bundle, maybe_requests ) : (
600
601
ExecutionPayload < E > ,
601
602
Uint256 ,
602
603
Option < BlobsBundle < E > > ,
@@ -611,8 +612,9 @@ pub fn serve<E: EthSpec>(
611
612
blob_kzg_commitments : maybe_blobs_bundle
612
613
. map ( |b| b. commitments )
613
614
. unwrap_or_default ( ) ,
614
- value : Uint256 :: from ( DEFAULT_BUILDER_PAYLOAD_VALUE_WEI ) ,
615
+ value,
615
616
pubkey : builder. builder_sk . public_key ( ) . compress ( ) ,
617
+ execution_requests : maybe_requests. unwrap_or_default ( ) ,
616
618
} ) ,
617
619
ForkName :: Deneb => BuilderBid :: Deneb ( BuilderBidDeneb {
618
620
header : payload
@@ -622,23 +624,23 @@ pub fn serve<E: EthSpec>(
622
624
blob_kzg_commitments : maybe_blobs_bundle
623
625
. map ( |b| b. commitments )
624
626
. unwrap_or_default ( ) ,
625
- value : Uint256 :: from ( DEFAULT_BUILDER_PAYLOAD_VALUE_WEI ) ,
627
+ value,
626
628
pubkey : builder. builder_sk . public_key ( ) . compress ( ) ,
627
629
} ) ,
628
630
ForkName :: Capella => BuilderBid :: Capella ( BuilderBidCapella {
629
631
header : payload
630
632
. as_capella ( )
631
633
. map_err ( |_| reject ( "incorrect payload variant" ) ) ?
632
634
. into ( ) ,
633
- value : Uint256 :: from ( DEFAULT_BUILDER_PAYLOAD_VALUE_WEI ) ,
635
+ value,
634
636
pubkey : builder. builder_sk . public_key ( ) . compress ( ) ,
635
637
} ) ,
636
638
ForkName :: Bellatrix => BuilderBid :: Bellatrix ( BuilderBidBellatrix {
637
639
header : payload
638
640
. as_bellatrix ( )
639
641
. map_err ( |_| reject ( "incorrect payload variant" ) ) ?
640
642
. into ( ) ,
641
- value : Uint256 :: from ( DEFAULT_BUILDER_PAYLOAD_VALUE_WEI ) ,
643
+ value,
642
644
pubkey : builder. builder_sk . public_key ( ) . compress ( ) ,
643
645
} ) ,
644
646
ForkName :: Base | ForkName :: Altair => {
0 commit comments