aboutsummaryrefslogtreecommitdiff
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorfurszy <matiasfurszyfer@protonmail.com>2024-03-27 16:32:08 -0300
committerfurszy <matiasfurszyfer@protonmail.com>2024-03-27 16:37:36 -0300
commit2eb5175de87c798af328de3f2147aac7879eaa10 (patch)
treee614b09959380d73a7a5fca69b33bfa8a17a26df /CONTRIBUTING.md
parent28f2ca675f89a764e1ec8eb5671b35357b8677f3 (diff)
downloadbitcoin-2eb5175de87c798af328de3f2147aac7879eaa10.tar.xz
test: fix StopIteration exception in p2p_node_network_limited.py
The `next()` call throws an exception if the default parameter is omitted and the iterator is exhausted. Fix it by providing a default value. The failure can be tested by commenting out lines 90 and 91 in the test (the `self.connect_nodes(2, 0)``). Since there is no connection, the node in question retrieves a single element in the 'getchaintips()' call. This scenario without the fix, aborts the test right away, throwing an StopIteration exception, and with the fix, the test properly waits until the timeout (wait_until() call).
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions