Skip to content

Commit 1708861

Browse files
committed
shard uint16 -> uint64
1 parent aaacf3e commit 1708861

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

eth/beacon/types/attestation_records.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
)
1414

1515
from eth.rlp.sedes import (
16-
uint16,
1716
uint64,
1817
uint256,
1918
hash32,
@@ -28,7 +27,7 @@ class AttestationRecord(rlp.Serializable):
2827
# Slot number
2928
('slot', uint64),
3029
# Shard number
31-
('shard', uint16),
30+
('shard', uint64),
3231
# Beacon block hashes not part of the current chain, oldest to newest
3332
('parent_hashes', CountableList(hash32)),
3433
# Shard block hash being attested to

eth/beacon/types/shard_and_committees.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
)
99

1010
from eth.rlp.sedes import (
11-
uint16,
1211
uint24,
12+
uint64,
1313
)
1414

1515

@@ -19,7 +19,7 @@ class ShardAndCommittee(rlp.Serializable):
1919
"""
2020
fields = [
2121
# Shard number
22-
('shard', uint16),
22+
('shard', uint64),
2323
# Validator indices
2424
('committee', CountableList(uint24)),
2525
]

eth/beacon/types/shard_reassignment_records.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import rlp
22

33
from eth.rlp.sedes import (
4-
uint16,
54
uint24,
65
uint64,
76
)
@@ -15,7 +14,7 @@ class ShardReassignmentRecord(rlp.Serializable):
1514
# Which validator to reassign
1615
('validator_index', uint24),
1716
# To which shard
18-
('shard', uint16),
17+
('shard', uint64),
1918
# When
2019
('slot', uint64),
2120
]

0 commit comments

Comments
 (0)