diff options
author | 0xb10c <b10c@b10c.me> | 2024-03-12 13:42:20 +0100 |
---|---|---|
committer | 0xb10c <b10c@b10c.me> | 2024-03-19 17:38:36 +0100 |
commit | 0d01f6f0c6e53c9765f84e0616ab46b83923a6ad (patch) | |
tree | 7a8871be8422affc7e99d5f7e010a0666c9ecb1b /test/functional/rpc_net.py | |
parent | 6205466512d4b94d1e507a77ab2151425790d29f (diff) | |
download | bitcoin-0d01f6f0c6e53c9765f84e0616ab46b83923a6ad.tar.xz |
test: remove unused mocktime in test_addpeeraddress
Drops the mocktime added in fa4c6836c9366c3cc575cb386a397840d5f1aa57.
Setting the mocktime in test_addpeeraddress() isn't needed
anymore as it doesn't leak into test_getrawaddrman() anymore
(since 2cc8ca19f4185490f30a49516c890b2289fbab71).
test_getrawaddrman() clear's the addrman and sets it's own
mocktime.
Diffstat (limited to 'test/functional/rpc_net.py')
-rwxr-xr-x | test/functional/rpc_net.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/test/functional/rpc_net.py b/test/functional/rpc_net.py index e50aeebad2..5801f2ce43 100755 --- a/test/functional/rpc_net.py +++ b/test/functional/rpc_net.py @@ -355,8 +355,6 @@ class NetTest(BitcoinTestFramework): assert_equal(len(node.getnodeaddresses(count=0)), 1) self.log.debug("Test that adding a valid address to the tried table succeeds") - self.addr_time = int(time.time()) - node.setmocktime(self.addr_time) assert_equal(node.addpeeraddress(address="1.2.3.4", tried=True, port=8333), {"success": True}) addrman = node.getrawaddrman() assert_equal(len(addrman["new"]), 1) |