mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-08-17 06:41:17 +03:00
* configure isort to add the future annotations import * apply the new isort setting * remove type ignores for new mypy (#13539) https://pypi.org/project/mypy/0.981/ * another
27 lines
600 B
Python
27 lines
600 B
Python
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass
|
|
from typing import List
|
|
|
|
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]
|