46 Commits

Author SHA1 Message Date
Mononaut
0b2eb73c3c delay writing disk cache until block handler completes 2023-05-03 15:53:47 -06:00
Mononaut
c745fe4093 Update rbf disk caching for new method 2023-05-03 13:00:23 -06:00
Mononaut
1033234ea9 Persist RBF cache to disk 2023-05-03 13:00:20 -06:00
Mononaut
27c7b4be5f use $ naming convention for async function names 2023-04-30 15:52:44 -06:00
Mononaut
e6a23567e0 await for mempool change handler after loading disk cache 2023-04-30 15:51:26 -06:00
nymkappa
9d9955c2be Cleanup some log 2023-04-01 12:00:54 +09:00
Mononaut
570e99fb8f handle stale transactions in block templates 2023-03-24 09:47:08 +09:00
softsimon
e1770cc9a2 Removing Sigterm. Cache write block interval configuration. 2023-03-20 15:46:05 +09:00
softsimon
2a8b49d40c Fix missing temp cache in disk cache 2023-03-20 15:44:55 +09:00
Mononaut
2c282ddcf0 Add network versioning to disk cache 2023-03-12 19:20:29 +09:00
Mononaut
8ee6817fab prevent disk cache file write corruption 2023-03-09 20:19:22 -06:00
Mononaut
6aa6912b5b Save cache to disk on SIGTERM/SIGINT 2023-03-09 19:47:54 -06:00
nymkappa
4bae903a66 Fix log typo 2023-03-05 08:27:31 +09:00
softsimon
ec9c8f5099 Merge branch 'master' into nymkappa/bugfix/wipe-cache-reindexing 2023-03-03 11:09:31 +09:00
nymkappa
393a89918f Wipe the disk cache since we have a new block structure 2023-02-27 19:06:46 +09:00
nymkappa
6651da6d7b Silence ENOENT exception when we wipe the nodejs backend cache 2023-02-26 11:37:57 +09:00
nymkappa
50ad3eee63 When we re-index blocks due to mining pools change, wipe the nodejs backend cache 2023-02-26 11:30:12 +09:00
nymkappa
8f60ce05e8 Increase cache schema version 2023-02-25 14:22:16 +09:00
Felipe Knorr Kuhn
76dbda0a3e Various typing and build fixes to enable CI 2022-06-27 21:28:21 -07:00
Mononaut
8c78810ef8 Add API endpoint for block summary data 2022-06-16 02:46:27 +00:00
nymkappa
25897659e8 Improve disk cache logging 2022-06-03 18:00:14 +02:00
nymkappa
aa1281bda6 Re-added missing cache version 2022-06-03 17:04:52 +02:00
nymkappa
ac4e964daf Add disk cache versioning 2022-06-03 13:31:45 +02:00
softsimon
645986b7fc 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
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