gitlab.com/gpdionisio/tendermint@v0.34.19-dev2/rpc/core/dev.go (about)

     1  package core
     2  
     3  import (
     4  	ctypes "github.com/tendermint/tendermint/rpc/core/types"
     5  	rpctypes "github.com/tendermint/tendermint/rpc/jsonrpc/types"
     6  )
     7  
     8  // UnsafeFlushMempool removes all transactions from the mempool.
     9  func UnsafeFlushMempool(ctx *rpctypes.Context) (*ctypes.ResultUnsafeFlushMempool, error) {
    10  	env.Mempool.Flush()
    11  	return &ctypes.ResultUnsafeFlushMempool{}, nil
    12  }