mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 13:07:17 +00:00
805230ba63
- Added listening methods for WebSocket subscriptions - Listened for new blocks using the newHeads method to determine when to look for a transaction - Added new util methods and tests for them - Simplified communication to the user upon initiating the devnet tool
17 lines
287 B
Go
17 lines
287 B
Go
package commands
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/ledgerwatch/erigon/cmd/devnet/models"
|
|
"github.com/ledgerwatch/erigon/cmd/devnet/requests"
|
|
)
|
|
|
|
func pingErigonRpc() error {
|
|
err := requests.PingErigonRpc(models.ReqId)
|
|
if err != nil {
|
|
fmt.Printf("FAILURE => %v\n", err)
|
|
}
|
|
return err
|
|
}
|