mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-07 11:32:20 +00:00
14 lines
281 B
Go
14 lines
281 B
Go
|
package requests
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
func PingErigonRpc(reqId int) error {
|
||
|
reqGen := initialiseRequestGenerator(reqId)
|
||
|
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
|
||
|
}
|