erigon-pulse/cmd/devnettest/commands/tx.go
leonardchinonso 878cc063b0
Draft PR to complete devnet automation (#4278)
* Fixing headers stuck in StageSync

* Removed ./dev folder and cleaned up code

* Removing the logs subscription tests
2022-06-01 22:47:12 +01:00

27 lines
481 B
Go

package commands
import (
"fmt"
"github.com/ledgerwatch/erigon/cmd/devnettest/requests"
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(txPoolCmd)
}
var txPoolCmd = &cobra.Command{
Use: "txpool-content",
Short: "Gets content of txpool",
Run: func(cmd *cobra.Command, args []string) {
showTxPoolContent()
},
}
func showTxPoolContent() {
if err := requests.TxpoolContent(reqId); err != nil {
fmt.Printf("error getting txpool content: %v\n", err)
}
}