mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
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
This commit is contained in:
parent
022b76f20b
commit
1fedf470cd
@ -6,6 +6,8 @@
|
||||
Test addrv2 relay
|
||||
"""
|
||||
|
||||
from typing import List
|
||||
|
||||
from test_framework.messages import (
|
||||
CAddress,
|
||||
msg_addrv2,
|
||||
@ -17,7 +19,7 @@ from test_framework.util import assert_equal
|
||||
|
||||
I2P_ADDR = "c4gfnttsuwqomiygupdqqqyy5y5emnk5c73hrfvatri67prd7vyq.b32.i2p"
|
||||
|
||||
ADDRS = []
|
||||
ADDRS: List[CAddress] = []
|
||||
|
||||
|
||||
class AddrReceiver(P2PInterface):
|
||||
|
Loading…
Reference in New Issue
Block a user