1 // Copyright (c) 2015 The btcsuite developers
2 // Use of this source code is governed by an ISC
3 // license that can be found in the LICENSE file.
6 This test file is part of the peer package rather than than the peer_test
7 package so it can bridge access to the internals to properly test cases which
8 are either not possible or can't reliably be tested via the public interface.
9 The functions are only exported while the tests are being run.
14 // TstAllowSelfConns allows the test package to allow self connections by
15 // disabling the detection logic.
16 func TstAllowSelfConns() {