Skip to content

Missing Dencun fields from newHeads subscription response #9854

@ImTei

Description

@ImTei

System information

Erigon version: ./erigon --version

erigon version 2.59.3-088fd8ef

OS & Version:

Distributor ID: Ubuntu
Description:    Ubuntu 22.04.2 LTS
Release:        22.04
Codename:       jammy

Commit hash:

Erigon Command (with flags/config):

./erigon/build/bin/erigon --chain=mainnet --datadir={DATA_DIR} --http.addr=0.0.0.0  --ws

Consensus Layer:

Prysm v5.0.2

Consensus Layer Command (with flags/config):
followed Prysm's official doc

./prysm.sh beacon-chain --checkpoint-sync-url=https://beaconstate.ethstaker.cc --genesis-beacon-api-url=https://beaconstate.ethstaker.cc --execution-endpoint=http://localhost:8551 --jwt-secret={JWT_SECRET}

Chain/Network:
Ethereum Mainnet

Expected behaviour

Getting new headers including fields added in Dencun(blobGasUsed, excessBlobGas, and parentBeaconBlockRoot) from the websocket connection.

{"id":1,"result":"0xfab181c9c1dc999a0d0425358cc7daa8","jsonrpc":"2.0"}
{"jsonrpc":"2.0","method":"eth_subscription","params":{"result":{"baseFeePerGas":"0xb8f1e10f6","blobGasUsed":"0xc0000","difficulty":"0x0","excessBlobGas":"0x4fc0000","extraData":"0x6265617665726275696c642e6f7267","gasLimit":"0x1c9c380","gasUsed":"0xe2e1c4","hash":"0x8b18f5acca404eb86a31f3ae36dc0dc91a4028dbcee6ff670a82d0aaa52afe0c","logsBloom":"0xb67d460701e189737421d5b099b15505501b1ea2dcc89c4206c9255c7c595d70ce0bc33c12e408c9f3979d239c26d90edf59a83e9a842bb5d238c237d0bddc1446765e4853e1dbef6a2be5e98e4939a8e8208064d2f57c121c86064090e034b433eb1dc3abc01431972d945024488a5d443eca4c1c889e8e47d09fbf488e4a39cc69977492c85069d0ea10ddb96a15009c47d4a189d0642bf9ae32685a948fac27fb71069a80fa1cb25564d689352511d441edb188b56e80b8b3326389d8a3d399f9cce22012023a494f1762180b52ece3bdc536c73398120c5655c20a30e28a0672f8284f160de250a65fe578220f9612117a7852e485614809b29874c6d6f8","miner":"0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5","mixHash":"0x84c5b17ec7ef22098c25e306225bdcf7b6615f0ac8dac6d0153499f52cba3b9b","nonce":"0x0000000000000000","number":"0x12a9f3d","parentBeaconBlockRoot":"0xa78309f7909f5230ce45c177ce550381c109e04209fcd432d7f030089a1a55fb","parentHash":"0x4133ace491f5bddba30f688cdb57ff9012314ce4bf5fddeb7aa26466d9504886","receiptsRoot":"0xb786725d7f35cbe05d2f7873d4b83415e7299454d0f2d04ba35a8abcd8826be3","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","size":"0x1082b","stateRoot":"0x3434748c1596fb4b733d62cd62a19021fa945212e5e1c4be77f3359326ec955d","timestamp":"0x660c6adf","transactionsRoot":"0x93857bb0f53ba34e835ef3df55023d75d886e3fc8dd81f5d5ec1461e48b850b2","withdrawals":[{"index":"0x26b06c6","validatorIndex":"0x83547","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0x1181910"},{"index":"0x26b06c7","validatorIndex":"0x83548","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0x1182eeb"},{"index":"0x26b06c8","validatorIndex":"0x83549","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0x11811db"},{"index":"0x26b06c9","validatorIndex":"0x8354a","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0x118cd88"},{"index":"0x26b06ca","validatorIndex":"0x8354b","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0x11804f3"},{"index":"0x26b06cb","validatorIndex":"0x8354c","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0x1190ba7"},{"index":"0x26b06cc","validatorIndex":"0x8354d","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0x1192cc2"},{"index":"0x26b06cd","validatorIndex":"0x8354e","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0x1183324"},{"index":"0x26b06ce","validatorIndex":"0x8354f","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0x11931d5"},{"index":"0x26b06cf","validatorIndex":"0x83550","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0x11882ed"},{"index":"0x26b06d0","validatorIndex":"0x83551","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0x117ea8b"},{"index":"0x26b06d1","validatorIndex":"0x83552","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0x1183aa4"},{"index":"0x26b06d2","validatorIndex":"0x83553","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0x118cb87"},{"index":"0x26b06d3","validatorIndex":"0x83554","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0x1183f49"},{"index":"0x26b06d4","validatorIndex":"0x83555","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0x1178ac0"},{"index":"0x26b06d5","validatorIndex":"0x83556","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0x1175bd5"}],"withdrawalsRoot":"0xf51525eb5eb23f4bf169ea278e12ca8dd0fb502cebf5beea031d907f84715d40"},"subscription":"0xfab181c9c1dc999a0d0425358cc7daa8"}}

Actual behaviour

The new headers response does not contain Dencun fields.

{"jsonrpc":"2.0","id":1,"result":"0x22d16fb9ba1d402a7fbb4913eb62d8f"}

{"jsonrpc":"2.0","method":"eth_subscription","params":{"subscription":"0x22d16fb9ba1d402a7fbb4913eb62d8f","result":{"parentHash":"0xe7d525a17dd35a0f30e596f0076095194c506ff27baf6ec4ba43f878b9da454f","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","miner":"0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5","stateRoot":"0xf70c053b90ebf25082687dc0e0764582babfc9739ccdbcc6e1050f2243cba0a9","transactionsRoot":"0x63d507b81d6888568a552488b89bc09bb2b5b5343bfd51c5b1b66e3bf696c40d","receiptsRoot":"0x94ef1bd4a3d02445587728dec0c6418080b8eebaf6056b589e5b80d659b73bba","logsBloom":"0xf6a37b47b76f85587d7be0fffc7bfa8637f3eb3859abe1d6fe1b99fe753be5f9b4eb65cfbe4adbb4e7a2fb052c7ffbd9deedb87bffbefbaf77bff7a860feafddb757f7cc7ee9dfba7dfbf33ff669e3b4e8df38fddd7e0c627cb7bf77d76db7fd7f2b45cae2f6bfcfbdcdddf366f829ed9fcda57987df377db37f75ddd69f97d93dfedb783b6e53bedddf3478fb3ad47ee551cdb5e7ffacff7f36797c3237bed9afe579ea8d9dfae32e9edfc5baf7fddef76dc6c362df47869fe7dfbaa98b43fd1f32969a267f6ffeeff6df7f93ffd9de2fffa79bf5eff39b453b55d39d57abc3abfe2d5cf6d3c7104f36d7bb6f70effc3fabfd9adbdce6ee692bdf9a73eed76f","difficulty":"0x0","number":"0x12a9f6f","gasLimit":"0x1c9c380","gasUsed":"0x19119c2","timestamp":"0x660c6d43","extraData":"0x6265617665726275696c642e6f7267","mixHash":"0xd828381ef842eeb9e1210e4bd2a71fae1cb375e579fca01d764812f2b4e51bae","nonce":"0x0000000000000000","baseFeePerGas":"0x9231368be","withdrawalsRoot":"0x85febdeb08c3786e4ad53e2fefce791f0b21605c2945e812b1d5e5f9ad5d46f6","hash":"0xf24f0cb395868869c16edbc5018e68343bda6fbeb66703938a2684b8de38b9c5"}}}

Steps to reproduce the behaviour

Run this Python script.

import asyncio
import websockets
import json

async def subscribe_new_heads():
    uri = "ws://{WS_ENDPOINT}"
    async with websockets.connect(uri) as websocket:
        subscription_request = {
            "jsonrpc": "2.0",
            "method": "eth_subscribe",
            "params": ["newHeads"],
            "id": 1
        }

        await websocket.send(json.dumps(subscription_request))

        while True:
            message = await websocket.recv()
            print(message)

asyncio.get_event_loop().run_until_complete(subscribe_new_heads())

Backtrace

[backtrace]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions