Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func LoadWhitelist ¶
func LoadWhitelist()
LoadWhitelist loads the whitelist using the config package
func StartGRPCServer ¶
StartGRPCServer starts the gRPC server for receiving block data
func StartGRPCServerWithRetries ¶
StartGRPCServerWithRetries retries gRPC server startup in case of failure
func UnaryInterceptor ¶
func UnaryInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
UnaryInterceptor checks the IP of the client and allows/denies the connection
Types ¶
type Server ¶
type Server struct { pb.UnimplementedExternalSubscriberServer // contains filtered or unexported fields }
Server implements the ExternalSubscriberServer
func (*Server) AcceptBlock ¶
AcceptBlock processes a new block, saves relevant data to the database, and stores transactions and actions
func (*Server) Initialize ¶
Initialize receives genesis data for initialization and saves it to the database Initialize receives genesis data for initialization and saves it to the database
Click to show internal directories.
Click to hide internal directories.