Skip to content

Commit 1fedf47

Browse files
committed
test: add type annotation for ADDRS in p2p_addrv2_relay
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
1 parent 022b76f commit 1fedf47

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/functional/p2p_addrv2_relay.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
Test addrv2 relay
77
"""
88

9+
from typing import List
10+
911
from test_framework.messages import (
1012
CAddress,
1113
msg_addrv2,
@@ -17,7 +19,7 @@
1719

1820
I2P_ADDR = "c4gfnttsuwqomiygupdqqqyy5y5emnk5c73hrfvatri67prd7vyq.b32.i2p"
1921

20-
ADDRS = []
22+
ADDRS: List[CAddress] = []
2123

2224

2325
class AddrReceiver(P2PInterface):

0 commit comments

Comments
 (0)