Skip to content

Commit df699f0

Browse files
authored
refactor(forks): rename GOSSIP_DIGEST from devnet0 to 12345678 (leanEthereum#700)
1 parent 62c5987 commit df699f0

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/lean_spec/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ async def run_node(
504504
# Set the network name for incoming message validation.
505505
#
506506
# Without this, the event source defaults to "0x00000000" and rejects
507-
# all messages from other clients that use "devnet0".
507+
# all messages from other clients that use "12345678".
508508
event_source.set_network_name(fork.GOSSIP_DIGEST)
509509

510510
# Subscribe to gossip topics.

src/lean_spec/forks/lstar/spec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class LstarSpec(ForkProtocol):
1414

1515
NAME: ClassVar[str] = "lstar"
1616
VERSION: ClassVar[int] = 4
17-
GOSSIP_DIGEST: ClassVar[str] = "devnet0"
17+
GOSSIP_DIGEST: ClassVar[str] = "12345678"
1818

1919
previous: ClassVar[type[ForkProtocol] | None] = None
2020

src/lean_spec/subspecs/node/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class NodeConfig:
105105
"""
106106
Network name for gossip topics.
107107
108-
For devnet testing with ream, use "devnet0".
108+
For devnet testing with ream, use "12345678".
109109
"""
110110

111111
is_aggregator: bool = field(default=False)

tests/interop/helpers/node_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ class NodeCluster:
199199
_genesis_time: int = field(default=0, repr=False)
200200
"""Genesis time for all nodes."""
201201

202-
network_name: str = field(default="devnet0")
202+
network_name: str = field(default="12345678")
203203
"""Network name for gossip topics."""
204204

205205
def __post_init__(self) -> None:

tests/lean_spec/forks/test_fork_protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def test_identity(self) -> None:
6060

6161
def test_gossip_digest(self) -> None:
6262
"""LstarSpec carries the gossipsub fork digest as fork metadata."""
63-
assert LstarSpec.GOSSIP_DIGEST == "devnet0"
63+
assert LstarSpec.GOSSIP_DIGEST == "12345678"
6464

6565
def test_previous_is_none(self) -> None:
6666
"""LstarSpec is the root of the upgrade chain."""

0 commit comments

Comments
 (0)