mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-07 05:46:32 +00:00
* Rename rpctypes.Context to CallInfo. Add methods to attach and recover this value from a context.Context. * Rework RPC method handlers to accept "real" contexts. - Replace *rpctypes.Context arguments with context.Context. - Update usage of RPC context fields to use CallInfo.
14 lines
338 B
Go
14 lines
338 B
Go
package core
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/tendermint/tendermint/rpc/coretypes"
|
|
)
|
|
|
|
// UnsafeFlushMempool removes all transactions from the mempool.
|
|
func (env *Environment) UnsafeFlushMempool(ctx context.Context) (*coretypes.ResultUnsafeFlushMempool, error) {
|
|
env.Mempool.Flush()
|
|
return &coretypes.ResultUnsafeFlushMempool{}, nil
|
|
}
|