Documentation ¶
Index ¶
Constants ¶
View Source
const ( EndpointsConfigName = "endpoints" ChainTrackerDefaultMemory = 100 )
Variables ¶
View Source
var ( Yaml_config_properties = []string{"network-address", "chain-id", "api-interface", "node-url"} NumFieldsInConfig = len(Yaml_config_properties) )
Functions ¶
func ParseEndpoints ¶
func ParseEndpoints(viper_endpoints *viper.Viper, geolocation uint64) (endpoints []*lavasession.RPCProviderEndpoint, err error)
Types ¶
type ProviderStateTrackerInf ¶
type ProviderStateTrackerInf interface { RegisterChainParserForSpecUpdates(ctx context.Context, chainParser chainlib.ChainParser) RegisterReliabilityManagerForVoteUpdates(ctx context.Context, reliabilityManager *reliabilitymanager.ReliabilityManager) RegisterForEpochUpdates(ctx context.Context, epochUpdatable statetracker.EpochUpdatable) QueryVerifyPairing(ctx context.Context, consumer string, blockHeight uint64) TxRelayPayment(ctx context.Context, relayRequests []*pairingtypes.RelayRequest) }
type RPCProvider ¶
type RPCProvider struct {
// contains filtered or unexported fields
}
func (*RPCProvider) Start ¶
func (rpcp *RPCProvider) Start(ctx context.Context, txFactory tx.Factory, clientCtx client.Context, rpcProviderEndpoints []*lavasession.RPCProviderEndpoint, cache *performance.Cache, parallelConnections uint) (err error)
type RPCProviderServer ¶
type RPCProviderServer struct{}
func (*RPCProviderServer) ServeRPCRequests ¶
func (rpcps *RPCProviderServer) ServeRPCRequests( ctx context.Context, rpcProviderEndpoint *lavasession.RPCProviderEndpoint, chainParser chainlib.ChainParser, rewardServer RewardServerInf, providerSessionManager *lavasession.ProviderSessionManager, reliabilityManager ReliabilityManagerInf, privKey *btcec.PrivateKey, cache *performance.Cache, chainProxy chainlib.ChainProxy, )
type ReliabilityManagerInf ¶
type ReliabilityManagerInf interface { GetLatestBlockData(fromBlock int64, toBlock int64, specificBlock int64) (latestBlock int64, requestedHashes []*chaintracker.BlockStore, err error) GetLatestBlockNum() int64 }
type RewardServerInf ¶
type RewardServerInf interface {
SendNewProof(ctx context.Context, singleProviderSession *lavasession.SingleProviderSession, epoch uint64, consumerAddr string)
}
Click to show internal directories.
Click to hide internal directories.