Commit Graph

23 Commits

Author SHA1 Message Date
softsimon
ec12f21113
Backend: Bumping Typescript version to 4.4.2 (#748)
* Backend: Bumping Typescript version to 4.4.2

* Replacing any types with instanceOf checks.
2021-08-31 15:09:33 +03:00
softsimon
7fab42baa5
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
5148de8f17
Shuffle mempool transactions before saving disk cache. (#398)
fixes #397
2021-03-19 13:47:37 +07:00
softsimon
32290d1e0d
Apply suggestions from code review
Co-authored-by: wiz <j@wiz.biz>
2021-02-14 20:03:45 +07:00
softsimon
584ef87fc8
Optimized cache chunks. Default cache files to /cache directory.
fixes #341
2021-02-14 19:50:31 +07:00
wiz
03179e34fb
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
f7ff6336f2 Add CACHE_DIR var 2021-02-01 15:54:27 +01:00
softsimon
5f1f06fecf
Don't save disk cache on exit. Handle corrupted mempool disk cache.
fixes #304
2021-01-27 01:49:11 +07:00
softsimon
1e81355e7d
Increased disk cache chunks amount to 10 to fix json string length error. 2021-01-15 23:26:32 +07:00
softsimon
c03073bddd
FIx: Write cache sync on exit. 2020-11-02 22:06:51 +07:00
softsimon
d46ff35dfb
Fix: Split mempool disk cache into 50K txs per file 2020-11-02 19:11:04 +07:00
softsimon
5feaff130f
Adding missing error cause messages. 2020-10-28 11:00:48 +07:00
softsimon
396ff6a375
Change collapsing dashboard into 3 levels. 2020-10-27 16:34:27 +07:00
softsimon
d260a1ed73
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
45efb604c1
Revamping configuration file.
fixes #141
2020-10-19 11:57:02 +07:00
softsimon
4dacf292c2
Adding logger wrapper.
Log backend messages to syslog.
fixes #135
2020-10-13 15:27:52 +07:00
softsimon
c0ad643d42
DiskCache fix when using clustering. 2020-09-30 00:25:43 +07:00
softsimon
140fc0c5e1
Bugfix: Mempool and blocks disk cache not saved on exit when using cluster. 2020-09-29 23:13:22 +07:00
softsimon
6d67fbde84
NodeJS cluster fix: Only save disk cache to disk when master.
fixes #108
2020-09-22 04:07:47 +07:00
softsimon
2382aa44e1 Write cache to disk on SIGTERM as with SIGINT. 2020-03-01 23:09:33 +07:00
softsimon
39394e1178
Also save and load blocks to cache.json for speedy restarts. 2020-02-29 21:52:04 +07:00
softsimon
7fbc6f1461
Moved websocket handling to its own file and cleaned up index.ts 2020-02-26 17:49:53 +07:00
Simon Lindh
fd2209e75a Initial code commit. 2019-07-21 17:59:47 +03:00