File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,8 @@ proc initFullNode(
258
258
index: data.index,
259
259
slot: data.signed_block_header.message.slot,
260
260
kzg_commitment: data.kzg_commitment,
261
- versioned_hash: data.kzg_commitment.kzg_commitment_to_versioned_hash))
261
+ versioned_hash:
262
+ data.kzg_commitment.kzg_commitment_to_versioned_hash.to0xHex))
262
263
proc onBlockAdded (data: ForkedTrustedSignedBeaconBlock ) =
263
264
let optimistic =
264
265
if node.currentSlot ().epoch () >= dag.cfg.BELLATRIX_FORK_EPOCH :
Original file line number Diff line number Diff line change 40
40
41
41
# TODO this apparently is suppposed to be SSZ-equivalent to Bytes32, but
42
42
# current spec doesn't ever SSZ-serialize it or hash_tree_root it
43
+ # TODO make `distinct` then add a REST serialization for it specifically, via
44
+ # basically to0xHex, then fix BlobSidecarInfoObject to use VersionedHash, not
45
+ # string, and rely on REST serialization, rather than serialize VersionedHash
46
+ # field manually
43
47
VersionedHash * = array [32 , byte ]
44
48
45
49
# https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.6/specs/deneb/beacon-chain.md#custom-types
68
72
index* : BlobIndex
69
73
slot* : Slot
70
74
kzg_commitment* : KzgCommitment
71
- versioned_hash* : VersionedHash
75
+ versioned_hash* : string # TODO should be string; VersionedHash not distinct
72
76
73
77
# https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.5/specs/deneb/p2p-interface.md#blobidentifier
74
78
BlobIdentifier * = object
You can’t perform that action at this time.
0 commit comments