prysm-pulse/sharding/p2p/service.go
Raul Jordan 3bd52dc116 sharding: address comments
Former-commit-id: 79d9091f883f99d819cb73a862e4925cea309931 [formerly 0307849b5b99bd4d08fbd4a9986b729640bf2319]
Former-commit-id: f950a1554d82d54ce981ce22c4e5639093428c56
2018-06-11 23:46:53 -05:00

26 lines
577 B
Go

// Package p2p handles peer-to-peer networking for the sharding package.
package p2p
import (
"github.com/ethereum/go-ethereum/log"
)
// Server is a placeholder for a shardp2p service. To be designed.
type Server struct{}
// NewServer creates a new shardp2p service instance.
func NewServer() (*Server, error) {
return &Server{}, nil
}
// Start the main routine for an shardp2p server.
func (s *Server) Start() {
log.Info("Starting shardp2p server")
}
// Stop the main shardp2p loop..
func (s *Server) Stop() error {
log.Info("Stopping shardp2p server")
return nil
}