mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-05 18:42:19 +00:00
47a6ac16da
adds a two indexes to the validators cache creates beaconhttp package with many utilities for beacon http endpoint (future support for ssz is baked in) started on some validator endpoints
26 lines
868 B
Go
26 lines
868 B
Go
package handler
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
func (a *ApiHandler) poolVoluntaryExits(r *http.Request) (*beaconResponse, error) {
|
|
return newBeaconResponse(a.operationsPool.VoluntaryExistsPool.Raw()), nil
|
|
}
|
|
|
|
func (a *ApiHandler) poolAttesterSlashings(r *http.Request) (*beaconResponse, error) {
|
|
return newBeaconResponse(a.operationsPool.AttesterSlashingsPool.Raw()), nil
|
|
}
|
|
|
|
func (a *ApiHandler) poolProposerSlashings(r *http.Request) (*beaconResponse, error) {
|
|
return newBeaconResponse(a.operationsPool.ProposerSlashingsPool.Raw()), nil
|
|
}
|
|
|
|
func (a *ApiHandler) poolBlsToExecutionChanges(r *http.Request) (*beaconResponse, error) {
|
|
return newBeaconResponse(a.operationsPool.BLSToExecutionChangesPool.Raw()), nil
|
|
}
|
|
|
|
func (a *ApiHandler) poolAttestations(r *http.Request) (*beaconResponse, error) {
|
|
return newBeaconResponse(a.operationsPool.AttestationsPool.Raw()), nil
|
|
}
|