I’m trying to execute the functional test feature_bind_port_discover.py, as explained in the answer to the question How can I run the skipped Bitcoin Functional Tests?. I’ve attempted to configure the routable addresses on my Ubuntu 22.04 LTS machine as follows:
-
I run the command:
ifconfig lo:0 1.1.1.1/32 up && ifconfig lo:1 2.2.2.2/32 up # to set up
-
It seems to configure correctly; when I run ifconfig, I get this:
lo:0: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 1.1.1.1 netmask 0.0.0.0
loop txqueuelen 1000 (Local Loopback)lo:1: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 2.2.2.2 netmask 0.0.0.0
loop txqueuelen 1000 (Local Loopback)
However, when I run the test with test/functional/feature_bind_port_externalip.py –ihave1111, it doesn’t work.
In the log, the error can be seen:
2024-01-01T22:15:36.009000Z TestFramework.utils (ERROR): wait_until() failed. Predicate: ''''
self.wait_until(lambda: sum(peer['version'] != 0 for peer in from_connection.getpeerinfo()) == from_num_peers)
'''
2024-01-01T22:15:36.009000Z TestFramework (ERROR): Assertion failed
Tr
What can I do to test this functional test? I’m encountering the same problem with feature_bind_port_externalip.py.
Thanks.










