diff options
Diffstat (limited to 'core/network.go')
-rw-r--r-- | core/network.go | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/core/network.go b/core/network.go index 8de73d2..d19af51 100644 --- a/core/network.go +++ b/core/network.go @@ -1,18 +1,18 @@ -// copyright 2018 the dexon-consensus-core authors -// this file is part of the dexon-consensus-core library. +// Copyright 2018 The dexon-consensus-core Authors +// This file is part of the dexon-consensus-core library. // -// the dexon-consensus-core library is free software: you can redistribute it -// and/or modify it under the terms of the gnu lesser general public license as -// published by the free software foundation, either version 3 of the license, +// The dexon-consensus-core library is free software: you can redistribute it +// and/or modify it under the terms of the GNU Lesser General Public License as +// published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // -// the dexon-consensus-core library is distributed in the hope that it will be -// useful, but without any warranty; without even the implied warranty of -// merchantability or fitness for a particular purpose. see the gnu lesser -// general public license for more details. +// The dexon-consensus-core library is distributed in the hope that it will be +// useful, but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. // -// you should have received a copy of the gnu lesser general public license -// along with the dexon-consensus-core library. if not, see +// You should have received a copy of the GNU Lesser General Public License +// along with the dexon-consensus-core library. If not, see // <http://www.gnu.org/licenses/>. package core @@ -28,6 +28,8 @@ type Endpoint interface { // Network is the interface for network related functions. type Network interface { + Start() + NumPeers() int Join(endpoint Endpoint) chan interface{} BroadcastBlock(block *types.Block) } |