forked from cerc-io/plugeth
eth/catalyst: implement exchangeCapabilities method (#26555)
Spec: ethereum/execution-apis#364
This commit is contained in:
parent
245cff0a1a
commit
2fecac6041
@ -79,6 +79,17 @@ const (
|
|||||||
beaconUpdateWarnFrequency = 5 * time.Minute
|
beaconUpdateWarnFrequency = 5 * time.Minute
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// All methods provided over the engine endpoint.
|
||||||
|
var caps = []string{
|
||||||
|
"engine_forkchoiceUpdatedV1",
|
||||||
|
"engine_forkchoiceUpdatedV2",
|
||||||
|
"engine_exchangeTransitionConfigurationV1",
|
||||||
|
"engine_getPayloadV1",
|
||||||
|
"engine_getPayloadV2",
|
||||||
|
"engine_newPayloadV1",
|
||||||
|
"engine_newPayloadV2",
|
||||||
|
}
|
||||||
|
|
||||||
type ConsensusAPI struct {
|
type ConsensusAPI struct {
|
||||||
eth *eth.Ethereum
|
eth *eth.Ethereum
|
||||||
|
|
||||||
@ -732,3 +743,8 @@ func (api *ConsensusAPI) heartbeat() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ExchangeCapabilities returns the current methods provided by this node.
|
||||||
|
func (api *ConsensusAPI) ExchangeCapabilities([]string) []string {
|
||||||
|
return caps
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user