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