rpc: unsafe_flush_mempool. closes #190

This commit is contained in:
Ethan Buchman
2016-07-12 14:58:06 -04:00
parent 54357bcf8f
commit 7bf34d1fae
4 changed files with 19 additions and 1 deletions

View File

@ -9,6 +9,11 @@ import (
ctypes "github.com/tendermint/tendermint/rpc/core/types"
)
func UnsafeFlushMempool() (*ctypes.ResultUnsafeFlushMempool, error) {
mempoolReactor.Mempool.Flush()
return &ctypes.ResultUnsafeFlushMempool{}, nil
}
func UnsafeSetConfig(typ, key, value string) (*ctypes.ResultUnsafeSetConfig, error) {
switch typ {
case "string":