mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-07 10:12:19 +00:00
fc40d603c0
Former-commit-id: e95f66b509da5b24054415c15642fd952728a193 [formerly 1f8c4e6ad036cddb162a5588696d44d648f7d5eb] Former-commit-id: 2897e7c38f227a4f8cd0456cb6fc904ecddeb71f
27 lines
595 B
Go
27 lines
595 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() error {
|
|
log.Info("Starting shardp2p server")
|
|
return nil
|
|
}
|
|
|
|
// Stop the main shardp2p loop..
|
|
func (s *Server) Stop() error {
|
|
log.Info("Stopping shardp2p server")
|
|
return nil
|
|
}
|