Test Details Overview

Add loopback-only peer mode to prevent live network connections in tests (#5093)

* Add loopback-only peer mode to prevent live network connections in tests

* Fix loopback check to include IPv4-mapped addresses

The `disable_non_loopback_peers` flag was rejecting IPv4 loopback
addresses (e.g. 127.0.0.1 mapped as ::ffff:127.0.0.1) because the
check only tested the raw v6 `is_loopback()` bit, which is false for
v4-mapped addresses. Unwrap the v4-mapped address before testing so
both ::1 and ::ffff:127.0.0.1 are correctly treated as loopback.

__________

Type: commit

Hash: 7ba55f4387f3eb483c8a63859bbb613fe2cc112e

Created: yesterday

__________

gr0v1ty/nano-node:7ba55f4387f3eb483c8a63859bbb613fe2cc112e

Test Results

Test Case Status Duration Median Deviation Log Graph
5n4pr_conf_10k_bintree PASS 109 s -1.0 s - Show
5n4pr_conf_10k_change PASS 207 s 11.0 s - Show
5n4pr_conf_change_dependant PASS 108 s -3.0 s - -
5n4pr_conf_change_independant PASS 111 s 2.0 s - -
5n4pr_conf_send_dependant PASS 120 s 9.0 s - -
5n4pr_conf_send_independant PASS 107 s -4.0 s - -
5n4pr_rocks_10k_bintree PASS 122 s 8.0 s - -
5n4pr_rocks_10k_change PASS 192 s 12.0 s - -