mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 20:17:17 +00:00
726ed8462d
Setup calls for rpc testing - Added call requests for testing rpc calls - Added new methods getBalance and txPool content
22 lines
481 B
Go
22 lines
481 B
Go
package commands
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/ledgerwatch/erigon/cmd/devnet/models"
|
|
)
|
|
|
|
// ExecuteAllMethods runs all the simulation tests for erigon devnet
|
|
func ExecuteAllMethods() {
|
|
// test connection to JSON RPC
|
|
fmt.Println("Mocking get requests to JSON RPC...")
|
|
pingErigonRpc()
|
|
fmt.Println()
|
|
|
|
// get balance of the receiver's account
|
|
callGetBalance(addr, models.BlockNumLatest, 0)
|
|
fmt.Println()
|
|
|
|
fmt.Println("Confirming the tx pool is empty...")
|
|
callTxPoolContent()
|
|
}
|