Merge branch 'master' into feature/pool-stats-page

This commit is contained in:
nymkappa
2022-02-15 20:42:06 +09:00
10 changed files with 63 additions and 133 deletions

View File

@@ -729,7 +729,13 @@ class Routes {
}
public async getMempool(req: Request, res: Response) {
res.status(501).send('Not implemented');
const info = mempool.getMempoolInfo();
res.json({
count: info.size,
vsize: info.bytes,
total_fee: info.total_fee * 1e8,
fee_histogram: []
});
}
public async getMempoolTxIds(req: Request, res: Response) {