Fix MEV builder file descriptor leaks.
This commit is contained in:
parent
23cf8e9b22
commit
f9468ecc24
|
@ -710,9 +710,7 @@ proc init*(T: type BeaconNode,
|
||||||
|
|
||||||
let payloadBuilderRestClient =
|
let payloadBuilderRestClient =
|
||||||
if config.payloadBuilderEnable:
|
if config.payloadBuilderEnable:
|
||||||
RestClientRef.new(
|
RestClientRef.new(config.payloadBuilderUrl).valueOr:
|
||||||
config.payloadBuilderUrl,
|
|
||||||
httpFlags = {HttpClientFlag.NewConnectionAlways}).valueOr:
|
|
||||||
warn "Payload builder REST client setup failed",
|
warn "Payload builder REST client setup failed",
|
||||||
payloadBuilderUrl = config.payloadBuilderUrl
|
payloadBuilderUrl = config.payloadBuilderUrl
|
||||||
nil
|
nil
|
||||||
|
|
|
@ -18,7 +18,7 @@ export chronos, client, rest_types, eth2_rest_serialization
|
||||||
proc registerValidator*(body: seq[SignedValidatorRegistrationV1]
|
proc registerValidator*(body: seq[SignedValidatorRegistrationV1]
|
||||||
): RestPlainResponse {.
|
): RestPlainResponse {.
|
||||||
rest, endpoint: "/eth/v1/builder/validators",
|
rest, endpoint: "/eth/v1/builder/validators",
|
||||||
meth: MethodPost.}
|
meth: MethodPost, connection: {Dedicated, Close}.}
|
||||||
## https://github.com/ethereum/builder-specs/blob/v0.2.0/apis/builder/validators.yaml
|
## https://github.com/ethereum/builder-specs/blob/v0.2.0/apis/builder/validators.yaml
|
||||||
## https://github.com/ethereum/beacon-APIs/blob/master/apis/validator/register_validator.yaml
|
## https://github.com/ethereum/beacon-APIs/blob/master/apis/validator/register_validator.yaml
|
||||||
|
|
||||||
|
@ -27,16 +27,16 @@ proc getHeader*(slot: Slot,
|
||||||
pubkey: ValidatorPubKey
|
pubkey: ValidatorPubKey
|
||||||
): RestResponse[GetHeaderResponse] {.
|
): RestResponse[GetHeaderResponse] {.
|
||||||
rest, endpoint: "/eth/v1/builder/header/{slot}/{parent_hash}/{pubkey}",
|
rest, endpoint: "/eth/v1/builder/header/{slot}/{parent_hash}/{pubkey}",
|
||||||
meth: MethodGet.}
|
meth: MethodGet, connection: {Dedicated, Close}.}
|
||||||
## https://github.com/ethereum/builder-specs/blob/v0.2.0/apis/builder/header.yaml
|
## https://github.com/ethereum/builder-specs/blob/v0.2.0/apis/builder/header.yaml
|
||||||
|
|
||||||
proc submitBlindedBlock*(body: SignedBlindedBeaconBlock
|
proc submitBlindedBlock*(body: SignedBlindedBeaconBlock
|
||||||
): RestResponse[SubmitBlindedBlockResponse] {.
|
): RestResponse[SubmitBlindedBlockResponse] {.
|
||||||
rest, endpoint: "/eth/v1/builder/blinded_blocks",
|
rest, endpoint: "/eth/v1/builder/blinded_blocks",
|
||||||
meth: MethodPost.}
|
meth: MethodPost, connection: {Dedicated, Close}.}
|
||||||
## https://github.com/ethereum/builder-specs/blob/v0.2.0/apis/builder/blinded_blocks.yaml
|
## https://github.com/ethereum/builder-specs/blob/v0.2.0/apis/builder/blinded_blocks.yaml
|
||||||
|
|
||||||
proc checkBuilderStatus*(): RestPlainResponse {.
|
proc checkBuilderStatus*(): RestPlainResponse {.
|
||||||
rest, endpoint: "/eth/v1/builder/status",
|
rest, endpoint: "/eth/v1/builder/status",
|
||||||
meth: MethodGet.}
|
meth: MethodGet, connection: {Dedicated, Close}.}
|
||||||
## https://github.com/ethereum/builder-specs/blob/v0.2.0/apis/builder/status.yaml
|
## https://github.com/ethereum/builder-specs/blob/v0.2.0/apis/builder/status.yaml
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 545849eebe62f1e0c747d93ea330562be6d44455
|
Subproject commit 8bc34dd6f60b6bfe22049323100355671e4137a2
|
Loading…
Reference in New Issue