mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-05 18:42:19 +00:00
72ba18bd36
Added operation pools for beacon chain. operations are the equivalent of txs for eth2 Added operation pools for: * Attester Slashings * Proposer Slashings * VoluntaryExits * BLSExecutionToChange * Postponed to later: Attestations (or maybe not)
26 lines
822 B
Go
26 lines
822 B
Go
package handler
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/ledgerwatch/erigon/cl/clparams"
|
|
)
|
|
|
|
func (a *ApiHandler) poolVoluntaryExits(r *http.Request) (data any, finalized *bool, version *clparams.StateVersion, httpStatus int, err error) {
|
|
httpStatus = http.StatusAccepted
|
|
data = a.operationsPool.VoluntaryExistsPool.Raw()
|
|
return
|
|
}
|
|
|
|
func (a *ApiHandler) poolAttesterSlashings(r *http.Request) (data any, finalized *bool, version *clparams.StateVersion, httpStatus int, err error) {
|
|
httpStatus = http.StatusAccepted
|
|
data = a.operationsPool.AttesterSlashingsPool.Raw()
|
|
return
|
|
}
|
|
|
|
func (a *ApiHandler) poolProposerSlashings(r *http.Request) (data any, finalized *bool, version *clparams.StateVersion, httpStatus int, err error) {
|
|
httpStatus = http.StatusAccepted
|
|
data = a.operationsPool.ProposerSlashingsPool.Raw()
|
|
return
|
|
}
|