From 3272bdf0e98050adfaecb1bce4cd2b720a4068b1 Mon Sep 17 00:00:00 2001 From: Lion - dapplion <35266934+dapplion@users.noreply.github.com> Date: Tue, 9 Jan 2024 17:07:30 +0700 Subject: [PATCH 1/3] Add block_gossip SSE event --- apis/eventstream/index.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apis/eventstream/index.yaml b/apis/eventstream/index.yaml index 682972db..5b284896 100644 --- a/apis/eventstream/index.yaml +++ b/apis/eventstream/index.yaml @@ -24,6 +24,7 @@ get: enum: - head - block + - block_gossip - attestation - voluntary_exit - bls_to_execution_change @@ -55,6 +56,11 @@ get: value: | event: block data: {"slot":"10", "block":"0x9a2fefd2fdb57f74993c7780ea5b9030d2897b615b89f808011ca5aebed54eaf", "execution_optimistic": false} + block_gossip: + description: The node has received a block (from P2P or API) that passes validation rules of the `beacon_block` topic + value: | + event: block + data: {"slot":"10", "block":"0x9a2fefd2fdb57f74993c7780ea5b9030d2897b615b89f808011ca5aebed54eaf"} attestation: description: The node has received a valid attestation (from P2P or API) value: | From 3311118a22e13022e08b47c12fd1e70f3e7ad117 Mon Sep 17 00:00:00 2001 From: Lion - dapplion <35266934+dapplion@users.noreply.github.com> Date: Tue, 30 Jan 2024 11:38:36 +0800 Subject: [PATCH 2/3] Update index.yaml --- apis/eventstream/index.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apis/eventstream/index.yaml b/apis/eventstream/index.yaml index 5bc348c0..4116ce6f 100644 --- a/apis/eventstream/index.yaml +++ b/apis/eventstream/index.yaml @@ -59,7 +59,7 @@ get: block_gossip: description: The node has received a block (from P2P or API) that passes validation rules of the `beacon_block` topic value: | - event: block + event: block_gossip data: {"slot":"10", "block":"0x9a2fefd2fdb57f74993c7780ea5b9030d2897b615b89f808011ca5aebed54eaf"} attestation: description: The node has received an Attestation (from P2P or API) that passes validation rules of the `beacon_attestation_{subnet_id}` topic From 7641be8a7393b2c930384bee03d27f84e25d6f3d Mon Sep 17 00:00:00 2001 From: dapplion <35266934+dapplion@users.noreply.github.com> Date: Wed, 31 Jan 2024 11:10:13 +0800 Subject: [PATCH 3/3] Add to changelog --- CHANGES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.md b/CHANGES.md index 7d2f215c..85966b2f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -14,6 +14,7 @@ There are likely to be descriptions etc outside of the list below, but new query | [#366](https://github.com/ethereum/beacon-APIs/pull/366) `proposer_slashing, attester_slashing EVENT` added | | | | | | | [#367](https://github.com/ethereum/beacon-APIs/pull/367) `POST /eth/v1/beacon/states/{state_id}/validators` | | | | | | | [#367](https://github.com/ethereum/beacon-APIs/pull/367) `POST /eth/v1/beacon/states/{state_id}/validator_balances` | | | | | | +| [#405](https://github.com/ethereum/beacon-APIs/pull/405) `block_gossip EVENT` added | | | | | | The Following are no longer in the Standard API, removed since the latest version.