erigon-pulse/cmd/devnet/requests/mock_request.go
Leonard Chinonso 726ed8462d
Setup calls for rpc testing (#5661)
Setup calls for rpc testing
- Added call requests for testing rpc calls
- Added new methods getBalance and txPool content
2022-10-11 13:34:32 +01:00

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
}