Skip to content

Commit ee5f3ef

Browse files
MariusVanDerWijdenshekhirin
authored andcommitted
eth/catalyst: implement exchangeCapabilities method (ethereum#26555)
Spec: ethereum/execution-apis#364
1 parent bfd030b commit ee5f3ef

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

eth/catalyst/api.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,17 @@ const (
7979
beaconUpdateWarnFrequency = 5 * time.Minute
8080
)
8181

82+
// All methods provided over the engine endpoint.
83+
var caps = []string{
84+
"engine_forkchoiceUpdatedV1",
85+
"engine_forkchoiceUpdatedV2",
86+
"engine_exchangeTransitionConfigurationV1",
87+
"engine_getPayloadV1",
88+
"engine_getPayloadV2",
89+
"engine_newPayloadV1",
90+
"engine_newPayloadV2",
91+
}
92+
8293
type ConsensusAPI struct {
8394
eth *eth.Ethereum
8495

@@ -732,3 +743,8 @@ func (api *ConsensusAPI) heartbeat() {
732743
}
733744
}
734745
}
746+
747+
// ExchangeCapabilities returns the current methods provided by this node.
748+
func (api *ConsensusAPI) ExchangeCapabilities([]string) []string {
749+
return caps
750+
}

0 commit comments

Comments
 (0)