Skip to content

Commit 9426444

Browse files
s1nalightclient
andauthored
internal/era: update eraE type IDs to match spec (#33827)
Update to match the spec: eth-clients/e2store-format-specs#16 --------- Co-authored-by: lightclient <lightclient@protonmail.com>
1 parent 995fa79 commit 9426444

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

internal/era/era.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ var (
3737
TypeCompressedReceipts uint16 = 0x05
3838
TypeTotalDifficulty uint16 = 0x06
3939
TypeAccumulator uint16 = 0x07
40-
TypeCompressedSlimReceipts uint16 = 0x08 // uses eth/69 encoding
41-
TypeProof uint16 = 0x09
40+
TypeCompressedSlimReceipts uint16 = 0x0a // uses eth/69 encoding
41+
TypeProof uint16 = 0x0b
4242
TypeBlockIndex uint16 = 0x3266
4343
TypeComponentIndex uint16 = 0x3267
4444

internal/era/execdb/builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ package execdb
2727
// Version = { type: 0x3265, data: nil }
2828
// CompressedHeader = { type: 0x03, data: snappyFramed(rlp(header)) }
2929
// CompressedBody = { type: 0x04, data: snappyFramed(rlp(body)) }
30-
// CompressedSlimReceipts = { type: 0x08, data: snappyFramed(rlp([tx-type, post-state-or-status, cumulative-gas, logs])) }
30+
// CompressedSlimReceipts = { type: 0x0a, data: snappyFramed(rlp([tx-type, post-state-or-status, cumulative-gas, logs])) }
3131
// TotalDifficulty = { type: 0x06, data: uint256 (header.total_difficulty) }
3232
// AccumulatorRoot = { type: 0x07, data: hash_tree_root(List(HeaderRecord, 8192)) }
3333
// ComponentIndex = { type: 0x3267, data: component-index }

0 commit comments

Comments
 (0)