mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 17:26:04 +00:00
Merge readiness endpoint (#3349)
## Issue Addressed Resolves final task in https://github.com/sigp/lighthouse/issues/3260 ## Proposed Changes Adds a lighthouse http endpoint to indicate merge readiness. Blocked on #3339
This commit is contained in:
@@ -453,4 +453,23 @@ Caveats:
|
||||
loading a state on a boundary is most efficient.
|
||||
|
||||
[block_reward_src]:
|
||||
https://github.com/sigp/lighthouse/tree/unstable/common/eth2/src/lighthouse/block_rewards.rs
|
||||
https://github.com/sigp/lighthouse/tree/unstable/common/eth2/src/lighthouse/block_rewards.rs
|
||||
|
||||
|
||||
### `/lighthouse/merge_readiness`
|
||||
|
||||
```bash
|
||||
curl -X GET "http://localhost:5052/lighthouse/merge_readiness"
|
||||
```
|
||||
|
||||
```
|
||||
{
|
||||
"data":{
|
||||
"type":"ready",
|
||||
"config":{
|
||||
"terminal_total_difficulty":"6400"
|
||||
},
|
||||
"current_difficulty":"4800"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user