-
-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
beacon.getBlockV2
in the new sszv2 can't seem to parse the response correctly
#3896
Comments
The execution payload returned by that URL is "execution_payload": {
"parent_hash": "0x3fef46ff162d7893a4a99a290beb2a8bd990036ebcf0da1190d679381ce9cb9e",
"fee_recipient": "0xf97e180c050e5ab072211ad2c213eb5aee4df134",
"state_root": "0x143a76eb213e46e1e51ee78d26db32025f953b2d04f95d0b07f58d1634cfac37",
"receipts_root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"logs_bloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"prev_randao": "0x480057438bc0b1209ac42d55cf3180807d213a27512e5865ed8102c8bfdb83e9",
"block_number": "214896",
"gas_limit": "8000000",
"gas_used": "0",
"timestamp": "1649404344",
"extra_data": [],
"base_fee_per_gas": "7",
"block_hash": "0xaa2030a604182b00e1f7bda53cc11e8100fc02d2a6f7dad387e53c77aea96b13",
"transactions": []
} This JSON serialization is invalid according to current ssz version because an empty It's running
|
updated the kiln node to latest: @lodestar-kiln-v2:~# docker logs kiln-lodestar | grep git
Apr-08 10:05:29.915[] info: Lodestar version=v0.35.0-beta.0/master/+50/43111801 (git), network=mainnet The extra data is still coming: |
ssz-v2 is merged only in master not latest stable. You should run 'next' tag there |
its next only, @lodestar-kiln-v2:~# docker logs kiln-lodestar | grep git
Apr-08 10:05:29.915[] info: Lodestar version=v0.35.0-beta.0/master/+50/43111801 (git), network=mainnet |
Could you add a unit test to assert correct behavior here in Lodestar master? |
Will do, but I think I mixed up updating our kiln validating testnet node with the kiln demo node. |
@g11tech Closing as you said things are working now |
Describe the bug
beacon.getBlockV2
can't seem to parse json response received from server correctly, erroring instead in the ssz v2 code.Code run in the new sszv2 lodestar:
While this works in the pre sszv2 commit:
Code run in the pre sszv2:
bash-5.1# ts-node testBlockV2.ts { data: { message: { slot: 199737, proposerIndex: 12779, parentRoot: [Uint8Array], stateRoot: [Uint8Array], body: [Object] }, signature: Uint8Array(96) [ 142, 242, 49, 82, 105, 13, 210, 39, 150, 1, 121, 73, 206, 18, 132, 155, 221, 167, 163, 207, 1, 118, 139, 158, 108, 104, 228, 196, 122, 102, 138, 240, 99, 20, 143, 231, 1, 28, 129, 249, 172, 196, 229, 73, 176, 171, 70, 17, 25, 39, 172, 131, 162, 108, 28, 2, 33, 197, 187, 212, 125, 6, 169, 220, 67, 162, 114, 98, 29, 50, 211, 99, 78, 109, 224, 229, 197, 109, 207, 30, 235, 221, 240, 25, 7, 197, 237, 252, 223, 38, 110, 83, 126, 60, 192, 66 ] }, version: 'bellatrix' }
The text was updated successfully, but these errors were encountered: