github.com/DFWallet/tendermint-cosmos@v0.0.2/rpc/core/dev.go (about) 1 package core 2 3 import ( 4 ctypes "github.com/DFWallet/tendermint-cosmos/rpc/core/types" 5 rpctypes "github.com/DFWallet/tendermint-cosmos/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 }