mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-10 04:51:20 +00:00
23 lines
429 B
Go
23 lines
429 B
Go
|
package commands
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"github.com/ledgerwatch/erigon/cmd/devnet/devnet"
|
||
|
"github.com/ledgerwatch/erigon/cmd/devnet/scenarios"
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
scenarios.MustRegisterStepHandlers(
|
||
|
scenarios.StepHandler(PingErigonRpc),
|
||
|
)
|
||
|
}
|
||
|
|
||
|
func PingErigonRpc(ctx context.Context) error {
|
||
|
err := devnet.SelectNode(ctx).PingErigonRpc().Err
|
||
|
if err != nil {
|
||
|
devnet.Logger(ctx).Error("FAILURE", "error", err)
|
||
|
}
|
||
|
return err
|
||
|
}
|