erigon-pulse/cmd/devnettest/commands/tx.go
primal_concrete_sledge 69671cf6c6
WIP:feature/rewrite-devnettest-to-cobra (#3227)
* WIP:feature/rewrite-devnettest-to-cobra

* Add parity commands

* Update dev chain md
2022-01-14 13:08:41 +00:00

22 lines
381 B
Go

package commands
import (
"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) {
if clearDev {
defer clearDevDB()
}
requests.TxpoolContent(reqId)
},
}