net: use peer=N instead of from=N in debug log

This commit is contained in:
Anthony Towns committed 2021-01-28 16:04:04 +10:00
1 parent 12302105bb
commit 98fab37ca0
2 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -74,9 +74,9 @@ class TimeoutsTest(BitcoinTestFramework):
no_version_node.send_message(msg_ping())
expected_timeout_logs = [
"version handshake timeout from 0",
"socket no message in first 3 seconds, 1 0 from 1",
"socket no message in first 3 seconds, 0 0 from 2",
"version handshake timeout peer=0",
"socket no message in first 3 seconds, 1 0 peer=1",
"socket no message in first 3 seconds, 0 0 peer=2",
]
with self.nodes[0].assert_debug_log(expected_msgs=expected_timeout_logs):