Commit graph

54 commits

Author SHA1 Message Date
Mononaut
c79a597c96
switch from redis-json to simple key-value redis entries 2023-07-31 12:16:37 +09:00
Mononaut
5138f9a254
Implement Redis cache for block and mempool data 2023-07-31 12:16:33 +09:00
Mononaut
fc504012d5
Enforce Rust GBT instance lifecycle 2023-07-03 10:18:18 -04:00
softsimon
038f9659bb
Save new disk cache after ignoring blocks 2023-05-25 19:19:14 +04:00
softsimon
aeb896e200
Don't wipe mempool cache in pools updater 2023-05-25 19:07:51 +04:00
softsimon
349ba613dd
Revert "Don't wipe mempool cache in pools updater"
This reverts commit 714208a366.
2023-05-25 19:06:45 +04:00
softsimon
714208a366
Don't wipe mempool cache in pools updater 2023-05-25 19:05:29 +04:00
Mononaut
d322c6b5b5
Fix new block mempool deletion race condition 2023-05-05 10:19:11 -07:00
Mononaut
e5f97ace8b
delay writing disk cache until block handler completes 2023-05-03 15:53:47 -06:00
Mononaut
36c7697c2b
Update rbf disk caching for new method 2023-05-03 13:00:23 -06:00
Mononaut
7e9cfa0858
Persist RBF cache to disk 2023-05-03 13:00:20 -06:00
Mononaut
4597bfa5d7
use $ naming convention for async function names 2023-04-30 15:52:44 -06:00
Mononaut
f30cf70226
await for mempool change handler after loading disk cache 2023-04-30 15:51:26 -06:00
nymkappa
321161ede9
Cleanup some log 2023-04-01 12:00:54 +09:00
Mononaut
1fd85b729d
handle stale transactions in block templates 2023-03-24 09:47:08 +09:00
softsimon
517cf613c1
Removing Sigterm. Cache write block interval configuration. 2023-03-20 15:46:05 +09:00
softsimon
d54bcc898b
Fix missing temp cache in disk cache 2023-03-20 15:44:55 +09:00
Mononaut
3bf96dafde
Add network versioning to disk cache 2023-03-12 19:20:29 +09:00
Mononaut
46d89ac837
prevent disk cache file write corruption 2023-03-09 20:19:22 -06:00
Mononaut
796566e7ae
Save cache to disk on SIGTERM/SIGINT 2023-03-09 19:47:54 -06:00
nymkappa
62ef1d4439
Fix log typo 2023-03-05 08:27:31 +09:00
softsimon
c404895b1b
Merge branch 'master' into nymkappa/bugfix/wipe-cache-reindexing 2023-03-03 11:09:31 +09:00
nymkappa
76ae9d4ccb
Wipe the disk cache since we have a new block structure 2023-02-27 19:06:46 +09:00
nymkappa
9a4a5ad94e
Silence ENOENT exception when we wipe the nodejs backend cache 2023-02-26 11:37:57 +09:00
nymkappa
32733a3023
When we re-index blocks due to mining pools change, wipe the nodejs backend cache 2023-02-26 11:30:12 +09:00
nymkappa
822362c105
Increase cache schema version 2023-02-25 14:22:16 +09:00
Felipe Knorr Kuhn
19ae01defb
Various typing and build fixes to enable CI 2022-06-27 21:28:21 -07:00
Mononaut
288bddcaf2 Add API endpoint for block summary data 2022-06-16 02:46:27 +00:00
nymkappa
b60c2a9341
Improve disk cache logging 2022-06-03 18:00:14 +02:00
nymkappa
3bc55d80ce
Re-added missing cache version 2022-06-03 17:04:52 +02:00
nymkappa
256dbc8c8e
Add disk cache versioning 2022-06-03 13:31:45 +02:00
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