Skip to content

Commit

Permalink
[test] Remove GetAddrStore class
Browse files Browse the repository at this point in the history
  • Loading branch information
amitiuttarwar committed Jun 22, 2021
1 parent ef2f149 commit 1d8193e
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions test/functional/p2p_addr_relay.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,6 @@ def getaddr_received(self):
return self.message_count['getaddr'] > 0


class GetAddrStore(P2PInterface):
getaddr_received = False
num_ipv4_received = 0

def on_getaddr(self, message):
self.getaddr_received = True

def on_addr(self, message):
for addr in message.addrs:
self.num_ipv4_received += 1

def addr_received(self):
return self.num_ipv4_received != 0


class AddrTest(BitcoinTestFramework):
counter = 0
mocktime = int(time.time())
Expand Down

0 comments on commit 1d8193e

Please sign in to comment.