diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-04-11 00:33:41 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-04-11 00:33:41 +0800 |
commit | 04fcae207dad27e1b7333da4cfb7319c071e622b (patch) | |
tree | 657e449e8259ec12655a77a41dbd9253e4e7c58e /p2p/server.go | |
parent | 542e42b21e777b24542e0e7b30ce641dd1df7b45 (diff) | |
download | go-tangerine-04fcae207dad27e1b7333da4cfb7319c071e622b.tar go-tangerine-04fcae207dad27e1b7333da4cfb7319c071e622b.tar.gz go-tangerine-04fcae207dad27e1b7333da4cfb7319c071e622b.tar.bz2 go-tangerine-04fcae207dad27e1b7333da4cfb7319c071e622b.tar.lz go-tangerine-04fcae207dad27e1b7333da4cfb7319c071e622b.tar.xz go-tangerine-04fcae207dad27e1b7333da4cfb7319c071e622b.tar.zst go-tangerine-04fcae207dad27e1b7333da4cfb7319c071e622b.zip |
p2p: if no nodes are connected, attempt dialing bootnodes (#13874)
Diffstat (limited to 'p2p/server.go')
-rw-r--r-- | p2p/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/server.go b/p2p/server.go index 48b4e8be3..b2b8c9762 100644 --- a/p2p/server.go +++ b/p2p/server.go @@ -396,7 +396,7 @@ func (srv *Server) Start() (err error) { if !srv.Discovery { dynPeers = 0 } - dialer := newDialState(srv.StaticNodes, srv.ntab, dynPeers, srv.NetRestrict) + dialer := newDialState(srv.StaticNodes, srv.BootstrapNodes, srv.ntab, dynPeers, srv.NetRestrict) // handshake srv.ourHandshake = &protoHandshake{Version: baseProtocolVersion, Name: srv.Name, ID: discover.PubkeyID(&srv.PrivateKey.PublicKey)} |