mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-28 18:14:19 -05:00
* manual python 3.8 removals * poetry * pyupgrade * black * isort * manually tidy imports * work around shadowed type * catch up build network protocol files for pyupgrade changes * placate pylint * re-enable 20.04 * placate flake8
26 lines
576 B
Python
26 lines
576 B
Python
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass
|
|
|
|
from chia.types.peer_info import TimestampedPeerInfo
|
|
from chia.util.streamable import Streamable, streamable
|
|
|
|
"""
|
|
Protocol to introducer
|
|
Note: When changing this file, also change protocol_message_types.py, and the protocol version in shared_protocol.py
|
|
"""
|
|
|
|
|
|
@streamable
|
|
@dataclass(frozen=True)
|
|
class RequestPeersIntroducer(Streamable):
|
|
"""
|
|
Return full list of peers
|
|
"""
|
|
|
|
|
|
@streamable
|
|
@dataclass(frozen=True)
|
|
class RespondPeersIntroducer(Streamable):
|
|
peer_list: list[TimestampedPeerInfo]
|