A Python port of the Invisible Internet Project (I2P)
at main 25 lines 532 B view raw
1"""Timestamper — dummy stub (real implementation is in router). 2 3Ported from net.i2p.time.Timestamper. 4""" 5 6from typing import Protocol 7 8 9class UpdateListener(Protocol): 10 """Interface to receive time update notifications.""" 11 12 def set_now(self, now: int, stratum: int) -> None: ... 13 14 15class Timestamper: 16 """Dummy timestamper. Real NTP sync is in RouterTimestamper.""" 17 18 def wait_for_initialization(self) -> None: 19 pass 20 21 def timestamp_now(self) -> None: 22 pass 23 24 def run(self) -> None: 25 pass