mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-10 13:01:21 +00:00
c408281d3b
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
18 lines
347 B
Go
18 lines
347 B
Go
package requests
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/ledgerwatch/log/v3"
|
|
)
|
|
|
|
func PingErigonRpc(reqId int, logger log.Logger) error {
|
|
reqGen := initialiseRequestGenerator(reqId, logger)
|
|
res := reqGen.PingErigonRpc()
|
|
if res.Err != nil {
|
|
return fmt.Errorf("failed to ping erigon rpc url: %v", res.Err)
|
|
}
|
|
fmt.Printf("SUCCESS => OK\n")
|
|
return nil
|
|
}
|