Currently it is possible to import a mempool by placing it in the datadir and starting the node. However this has many issues:
- Users aren’t expected to fiddle with the datadir, possibly corrupting it
- An existing mempool file in the datadir may be overwritten
- The node needs to be restarted
- Importing an untrusted file this way is dangerous, because it can corrupt the mempool
Fix all issues by adding a new RPC.