mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-10 11:41:21 +00:00
0cb46eb29a
* initial impl * review feedback * fix tests * review feedback * some improvements * tests and small improvements * gzl * one more review * fix test * fix other test * get the roots instead of hashing them * fix comment * fix justified case * fix all tests * misc * gzl * fix broken tests * use isOptimisticForRoot once we have the blockroot * Fix is_not_finalized_when_head_is_optimistic but reviewing the logic first * Fix is_not_finalized_when_head_is_optimistic * better root tests * move optimistic check before parsing root * check for last validated checkpoint * add right check for finalized * fix finalized tests * removed impossible condition * fix TestGetSyncCommitteeDuties * Use Ancestor from chaininfo * fix test --------- Co-authored-by: Potuz <potuz@prysmaticlabs.com> Co-authored-by: Nishant Das <nishdas93@gmail.com> Co-authored-by: rauljordan <raul@prysmaticlabs.com> Co-authored-by: terence tsao <terence@prysmaticlabs.com>
23 lines
932 B
Go
23 lines
932 B
Go
// Package debug defines a gRPC beacon service implementation,
|
|
// following the official API standards https://ethereum.github.io/beacon-apis/#/.
|
|
// This package includes the beacon and config endpoints.
|
|
package debug
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/blockchain"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/db"
|
|
"github.com/prysmaticlabs/prysm/v4/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 Beacon Chain.
|
|
type Server struct {
|
|
BeaconDB db.ReadOnlyDatabase
|
|
HeadFetcher blockchain.HeadFetcher
|
|
StateFetcher statefetcher.Fetcher
|
|
OptimisticModeFetcher blockchain.OptimisticModeFetcher
|
|
ForkFetcher blockchain.ForkFetcher
|
|
FinalizationFetcher blockchain.FinalizationFetcher
|
|
ChainInfoFetcher blockchain.ChainInfoFetcher
|
|
}
|