mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-11 15:40:54 +00:00
Merge remote-tracking branch 'origin/add-ws-transport' into add-ws-transport
This commit is contained in:
@ -39,8 +39,6 @@ from .peerinfo import (
|
|||||||
PERMANENT_ADDR_TTL = 0
|
PERMANENT_ADDR_TTL = 0
|
||||||
|
|
||||||
|
|
||||||
# TODO: Set up an async task for periodic peer-store cleanup
|
|
||||||
# for expired addresses and records.
|
|
||||||
class PeerRecordState:
|
class PeerRecordState:
|
||||||
envelope: Envelope
|
envelope: Envelope
|
||||||
seq: int
|
seq: int
|
||||||
@ -217,7 +215,6 @@ class PeerStore(IPeerStore):
|
|||||||
|
|
||||||
# -----CERT-ADDR-BOOK-----
|
# -----CERT-ADDR-BOOK-----
|
||||||
|
|
||||||
# TODO: Make proper use of this function
|
|
||||||
def maybe_delete_peer_record(self, peer_id: ID) -> None:
|
def maybe_delete_peer_record(self, peer_id: ID) -> None:
|
||||||
"""
|
"""
|
||||||
Delete the signed peer record for a peer if it has no know
|
Delete the signed peer record for a peer if it has no know
|
||||||
|
|||||||
@ -29,11 +29,6 @@ class Transport(ISecureTransport):
|
|||||||
early_data: bytes | None
|
early_data: bytes | None
|
||||||
with_noise_pipes: bool
|
with_noise_pipes: bool
|
||||||
|
|
||||||
# NOTE: Implementations that support Noise Pipes must decide whether to use
|
|
||||||
# an XX or IK handshake based on whether they possess a cached static
|
|
||||||
# Noise key for the remote peer.
|
|
||||||
# TODO: A storage of seen noise static keys for pattern IK?
|
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
libp2p_keypair: KeyPair,
|
libp2p_keypair: KeyPair,
|
||||||
|
|||||||
1
newsfragments/816.internal.rst
Normal file
1
newsfragments/816.internal.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
The TODO IK patterns in Noise has been deprecated in specs: https://github.com/libp2p/specs/tree/master/noise#handshake-pattern
|
||||||
3
newsfragments/819.internal.rst
Normal file
3
newsfragments/819.internal.rst
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Remove the already completed TODO tasks in Peerstore:
|
||||||
|
TODO: Set up an async task for periodic peer-store cleanup for expired addresses and records.
|
||||||
|
TODO: Make proper use of this function
|
||||||
Reference in New Issue
Block a user