fort-nix / nix-bitcoin

A collection of Nix packages and NixOS modules for easily installing full-featured Bitcoin nodes with an emphasis on security.
https://nixbitcoin.org
MIT License
509 stars 106 forks source link

Increase mempool historicals window size #663

Closed OliverOffing closed 11 months ago

OliverOffing commented 11 months ago

It looks like mempool is currently storing/caching 1 (one) week worth of mempool data. Which means it's deleting data older than 7 days. This prevents me from seeing the charts for what the mempool looked like a month ago.

Is there an option available / is it possible to add an option to nix-bitcoin that would prevent the deletion of older mempool data?

erikarvstedt commented 11 months ago

I can't reproduce this. The mempool instance on nixbitcoin.org runs with the default settings and shows 1 year of mempool history when clicking on the 4Y timespan button.

erikarvstedt commented 11 months ago

Feel free to reopen if this issue persists.

OliverOffing commented 11 months ago

Confirming the data (from Nov 29 on) is still there. I guess the database must've been re-created when I switched from the old method of having mempool on nix-bitcoin to the new method.

erikarvstedt commented 11 months ago

The mempool extension flake and the new core module are equivalent. nixbitcoin.org also switched to the new core module, and it still has the complete history since the mempool instance started in Dec. 2022.

OliverOffing commented 11 months ago

Yeah but I was using the fetchTarball method, not flakes.

erikarvstedt commented 11 months ago

This has no effect on the resulting mempool service.