The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
woop/api/service/legacysync/downloader/interface.go

12 lines
456 B

package downloader
import (
pb "github.com/woop-chain/woop/api/service/legacysync/downloader/proto"
)
// DownloadInterface is the interface for downloader package.
type DownloadInterface interface {
// State Syncing server-side interface, responsible for all kinds of state syncing grpc calls
// incomingPeer is incoming peer ip:port information
CalculateResponse(request *pb.DownloaderRequest, incomingPeer string) (*pb.DownloaderResponse, error)
}