OSDN Git Service

new repo
[bytom/vapor.git] / vendor / github.com / btcsuite / btcd / peer / export_test.go
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.
4
5 /*
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.
10 */
11
12 package peer
13
14 // TstAllowSelfConns allows the test package to allow self connections by
15 // disabling the detection logic.
16 func TstAllowSelfConns() {
17         allowSelfConns = true
18 }