Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lean_spec/subspecs/networking/client/event_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@


References:
- Ethereum P2P spec: https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/p2p-interface.md
- Ethereum P2P spec: https://github.com/ethereum/consensus-specs/blob/master/specs/phase0/p2p-interface.md
- Gossipsub v1.1: https://github.com/libp2p/specs/blob/master/pubsub/gossipsub/gossipsub-v1.1.md
- SSZ spec: https://github.com/ethereum/consensus-specs/blob/dev/ssz/simple-serialize.md
- Snappy format: https://github.com/google/snappy/blob/main/format_description.txt
Expand Down
2 changes: 1 addition & 1 deletion src/lean_spec/subspecs/networking/enr/eth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
- attnets: Bitvector[64] - attestation subnets (bit i = subscribed to subnet i)
- syncnets: Bitvector[4] - sync committee subnets

See: https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/p2p-interface.md
See: https://github.com/ethereum/consensus-specs/blob/master/specs/phase0/p2p-interface.md
"""

from typing import ClassVar
Expand Down
2 changes: 1 addition & 1 deletion src/lean_spec/subspecs/networking/gossipsub/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
----------
- Gossipsub v1.0: https://github.com/libp2p/specs/blob/master/pubsub/gossipsub/gossipsub-v1.0.md
- Gossipsub v1.2: https://github.com/libp2p/specs/blob/master/pubsub/gossipsub/gossipsub-v1.2.md
- Ethereum P2P: https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/p2p-interface.md
- Ethereum P2P: https://github.com/ethereum/consensus-specs/blob/master/specs/phase0/p2p-interface.md
"""

from .behavior import (
Expand Down
2 changes: 1 addition & 1 deletion src/lean_spec/subspecs/networking/gossipsub/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

References:
----------
- `Ethereum P2P spec <https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/p2p-interface.md>`_
- `Ethereum P2P spec <https://github.com/ethereum/consensus-specs/blob/master/specs/phase0/p2p-interface.md>`_
- `Gossipsub v1.0 <https://github.com/libp2p/specs/blob/master/pubsub/gossipsub/gossipsub-v1.0.md>`_
"""

Expand Down
2 changes: 1 addition & 1 deletion src/lean_spec/subspecs/networking/gossipsub/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

References:
----------
- Ethereum P2P spec: https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/p2p-interface.md
- Ethereum P2P spec: https://github.com/ethereum/consensus-specs/blob/master/specs/phase0/p2p-interface.md
- Gossipsub v1.0: https://github.com/libp2p/specs/blob/master/pubsub/gossipsub/gossipsub-v1.0.md
- Gossipsub v1.2: https://github.com/libp2p/specs/blob/master/pubsub/gossipsub/gossipsub-v1.2.md
"""
Expand Down
2 changes: 1 addition & 1 deletion src/lean_spec/subspecs/networking/gossipsub/topic.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

References:
----------
- Ethereum P2P: https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/p2p-interface.md
- Ethereum P2P: https://github.com/ethereum/consensus-specs/blob/master/specs/phase0/p2p-interface.md
"""

from __future__ import annotations
Expand Down
4 changes: 2 additions & 2 deletions src/lean_spec/subspecs/networking/reqresp/codec.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

References:
Ethereum P2P spec:
https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/p2p-interface.md
https://github.com/ethereum/consensus-specs/blob/master/specs/phase0/p2p-interface.md
LEB128 encoding:
https://en.wikipedia.org/wiki/LEB128
Snappy framing:
Expand Down Expand Up @@ -210,7 +210,7 @@ class ResponseCode(IntEnum):
- Codes 128-255: Treated as INVALID_REQUEST (invalid range).

Reference:
https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/p2p-interface.md
https://github.com/ethereum/consensus-specs/blob/master/specs/phase0/p2p-interface.md
"""

SUCCESS = 0
Expand Down
2 changes: 1 addition & 1 deletion src/lean_spec/subspecs/networking/reqresp/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

References:
Ethereum P2P spec:
https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/p2p-interface.md
https://github.com/ethereum/consensus-specs/blob/master/specs/phase0/p2p-interface.md
Wire format details:
See codec.py in this package
"""
Expand Down
2 changes: 1 addition & 1 deletion src/lean_spec/subspecs/networking/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class GoodbyeReason(IntEnum):

References:
-----------
- Goodbye spec: https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/p2p-interface.md#goodbye-v1
- Goodbye spec: https://github.com/ethereum/consensus-specs/blob/master/specs/phase0/p2p-interface.md#goodbye-v1
"""

CLIENT_SHUTDOWN = 1
Expand Down
Loading