mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-07 10:12:19 +00:00
a8716d2949
* initial implementation * use ChainHeads to get heads * API unit tests * remove unnecessary identifier * fix formatting * gzl * Update chainheads to fork choice scope * use HeadFetcher * fix test * gzl * remove junk * remove ChainHeads from forkchoice Co-authored-by: terence tsao <terence@prysmaticlabs.com> Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
23 lines
751 B
Go
23 lines
751 B
Go
// Package beaconv1 defines a gRPC beacon service implementation,
|
|
// following the official API standards https://ethereum.github.io/eth2.0-APIs/#/.
|
|
// This package includes the beacon and config endpoints.
|
|
package debugv1
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/blockchain"
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/db"
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/rpc/statefetcher"
|
|
)
|
|
|
|
// Server defines a server implementation of the gRPC Beacon Chain service,
|
|
// providing RPC endpoints to access data relevant to the Ethereum 2.0 phase 0
|
|
// beacon chain.
|
|
type Server struct {
|
|
Ctx context.Context
|
|
BeaconDB db.ReadOnlyDatabase
|
|
HeadFetcher blockchain.HeadFetcher
|
|
StateFetcher statefetcher.Fetcher
|
|
}
|