def setup_addr_msg(self, num):
    addrs = []
    for i in range(num):
        addr = CAddress()
        addr.time = (self.mocktime + i)
        addr.nServices = (NODE_NETWORK | NODE_WITNESS)
        addr.ip = f'123.123.123.{(self.counter % 256)}'
        addr.port = (8333 + i)
        addrs.append(addr)
        self.counter += 1
    msg = msg_addr()
    msg.addrs = addrs
    return msg
def setup_addr_msg(self, num):
    addrs = []
    for i in range(num):
        addr = CAddress()
        addr.time = (self.mocktime + i)
        addr.nServices = (NODE_NETWORK | NODE_WITNESS)
        addr.ip = f'123.123.123.{(self.counter % 256)}'
        addr.port = (8333 + i)
        addrs.append(addr)
        self.counter += 1
    msg = msg_addr()
    msg.addrs = addrs
    return msg