diff options
author | stratospher <44024636+stratospher@users.noreply.github.com> | 2023-11-15 10:38:40 +0530 |
---|---|---|
committer | stratospher <44024636+stratospher@users.noreply.github.com> | 2024-01-23 22:04:55 +0530 |
commit | 8d6c848a48530893ca40be5c1285541b3e7a94f3 (patch) | |
tree | 9623f102edea8d3791757bc8a1ab1dcf4babe1c5 /test/functional/feature_addrman.py | |
parent | 595ad4b16880ae1f23463ca9985381c8eae945d8 (diff) | |
download | bitcoin-8d6c848a48530893ca40be5c1285541b3e7a94f3.tar.xz |
[test] Move MAGIC_BYTES to messages.py
This avoids circular dependency happening when importing MAGIC_BYTES.
Before,
p2p.py <--import for EncryptedP2PState-- v2_p2p.py
| ^
| |
└---------import for MAGIC_BYTES----------┘
Now, MAGIC_BYTES are kept separately in messages.py
Co-authored-by: Martin Zumsande <mzumsande@gmail.com>
Diffstat (limited to 'test/functional/feature_addrman.py')
-rwxr-xr-x | test/functional/feature_addrman.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/functional/feature_addrman.py b/test/functional/feature_addrman.py index 9839993115..a7ce864fde 100755 --- a/test/functional/feature_addrman.py +++ b/test/functional/feature_addrman.py @@ -8,9 +8,8 @@ import os import re import struct -from test_framework.messages import ser_uint256, hash256 +from test_framework.messages import ser_uint256, hash256, MAGIC_BYTES from test_framework.netutil import ADDRMAN_NEW_BUCKET_COUNT, ADDRMAN_TRIED_BUCKET_COUNT, ADDRMAN_BUCKET_SIZE -from test_framework.p2p import MAGIC_BYTES from test_framework.test_framework import BitcoinTestFramework from test_framework.test_node import ErrorMatch from test_framework.util import assert_equal |