mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-04 01:54:28 +00:00
878cc063b0
* Fixing headers stuck in StageSync * Removed ./dev folder and cleaned up code * Removing the logs subscription tests
27 lines
481 B
Go
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)
|
|
}
|
|
}
|