Skip to content

Commit

Permalink
test: add type annotation for ADDRS in p2p_addrv2_relay
Browse files Browse the repository at this point in the history
Required to avoid unhappy python linter[1] result. Have to use annotation
instead of re-aligning with upstream (where ADDRS is populated in the
global state) due to reliance on `self.mocktime`, without which, the test
fails[2]

[1] - https://gitlab.com/dashpay/dash/-/jobs/6594035886
[2] - https://gitlab.com/dashpay/dash/-/jobs/6597322548
  • Loading branch information
kwvg committed Apr 12, 2024
1 parent 022b76f commit 1fedf47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/functional/p2p_addrv2_relay.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
Test addrv2 relay
"""

from typing import List

from test_framework.messages import (
CAddress,
msg_addrv2,
Expand All @@ -17,7 +19,7 @@

I2P_ADDR = "c4gfnttsuwqomiygupdqqqyy5y5emnk5c73hrfvatri67prd7vyq.b32.i2p"

ADDRS = []
ADDRS: List[CAddress] = []


class AddrReceiver(P2PInterface):
Expand Down

0 comments on commit 1fedf47

Please sign in to comment.