keep cached RBF info for 24 hours after tx leaves the mempool

This commit is contained in:
Mononaut
2022-12-09 14:35:51 -06:00
parent 0481f57304
commit d778530620
4 changed files with 37 additions and 37 deletions

View File

@@ -595,7 +595,7 @@ class BitcoinRoutes {
private async getRbfHistory(req: Request, res: Response) {
try {
const result = rbfCache.getReplaces(req.params.txId);
res.json(result?.txids || []);
res.json(result || []);
} catch (e) {
res.status(500).send(e instanceof Error ? e.message : e);
}