22 Commits

Author SHA1 Message Date
softsimon
010cedee24 Only allow one disk cache saving simultaneously, and allow for partially written cache files.
fixes #444
2021-04-12 13:21:49 +04:00
softsimon
aa43511e0a Shuffle mempool transactions before saving disk cache. (#398)
fixes #397
2021-03-19 13:47:37 +07:00
softsimon
eace751090 Apply suggestions from code review
Co-authored-by: wiz <j@wiz.biz>
2021-02-14 20:03:45 +07:00
softsimon
b11c2a7879 Optimized cache chunks. Default cache files to /cache directory.
fixes #341
2021-02-14 19:50:31 +07:00
wiz
5c615537de Merge pull request #317 from bguillaumat/add-cache-dir
Add Dockerization of Mempool v2 for Umbrel App Store
2021-02-03 03:21:22 +09:00
Bastien
ffb9d01f85 Add CACHE_DIR var 2021-02-01 15:54:27 +01:00
softsimon
4ff55e694c Don't save disk cache on exit. Handle corrupted mempool disk cache.
fixes #304
2021-01-27 01:49:11 +07:00
softsimon
22d5c87404 Increased disk cache chunks amount to 10 to fix json string length error. 2021-01-15 23:26:32 +07:00
softsimon
021c082ac7 FIx: Write cache sync on exit. 2020-11-02 22:06:51 +07:00
softsimon
e8a99e7eef Fix: Split mempool disk cache into 50K txs per file 2020-11-02 19:11:04 +07:00
softsimon
df28347b5e Adding missing error cause messages. 2020-10-28 11:00:48 +07:00
softsimon
2ac8608620 Change collapsing dashboard into 3 levels. 2020-10-27 16:34:27 +07:00
softsimon
2365c9686d Write cache.json on startup if it doesn't exist.
Write mempool and block data to cache on every new block
fixes #146
2020-10-27 00:05:06 +07:00
softsimon
e2a7683828 Revamping configuration file.
fixes #141
2020-10-19 11:57:02 +07:00
softsimon
fae1347db2 Adding logger wrapper.
Log backend messages to syslog.
fixes #135
2020-10-13 15:27:52 +07:00
softsimon
f50e077b9c DiskCache fix when using clustering. 2020-09-30 00:25:43 +07:00
softsimon
15e75034f9 Bugfix: Mempool and blocks disk cache not saved on exit when using cluster. 2020-09-29 23:13:22 +07:00
softsimon
c2288c31e6 NodeJS cluster fix: Only save disk cache to disk when master.
fixes #108
2020-09-22 04:07:47 +07:00
softsimon
f2bd463426 Write cache to disk on SIGTERM as with SIGINT. 2020-03-01 23:09:33 +07:00
softsimon
f672387be2 Also save and load blocks to cache.json for speedy restarts. 2020-02-29 21:52:04 +07:00
softsimon
e4bd08cf31 Moved websocket handling to its own file and cleaned up index.ts 2020-02-26 17:49:53 +07:00
Simon Lindh
94132a903f Initial code commit. 2019-07-21 17:59:47 +03:00