rpc: use a struct to wrap all the global objects

Closes #3433
This commit is contained in:
Anton Kaliaev
2020-05-27 12:07:23 +04:00
parent f9c2ca51ad
commit a1ebf16625
17 changed files with 164 additions and 198 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import (
// UnsafeFlushMempool removes all transactions from the mempool.
func UnsafeFlushMempool(ctx *rpctypes.Context) (*ctypes.ResultUnsafeFlushMempool, error) {
mempool.Flush()
env.Mempool.Flush()
return &ctypes.ResultUnsafeFlushMempool{}, nil
}