mirror of
https://github.com/mempool/mempool.git
synced 2025-01-18 21:32:55 +01:00
Fix: Refresh Liquid icons every 15 seconds to match electrs.
This commit is contained in:
parent
31e320b2e2
commit
11a6d81a17
@ -155,11 +155,17 @@ class Server {
|
||||
}
|
||||
|
||||
if (Common.isLiquid()) {
|
||||
try {
|
||||
icons.loadIcons();
|
||||
} catch (e) {
|
||||
logger.err('Cannot load liquid icons. Ignoring. Reason: ' + (e instanceof Error ? e.message : e));
|
||||
}
|
||||
const refreshIcons = () => {
|
||||
try {
|
||||
icons.loadIcons();
|
||||
} catch (e) {
|
||||
logger.err('Cannot load liquid icons. Ignoring. Reason: ' + (e instanceof Error ? e.message : e));
|
||||
}
|
||||
};
|
||||
// Run once on startup.
|
||||
refreshIcons();
|
||||
// Matches electrs hard coded refresh interval for asset db.
|
||||
setInterval(refreshIcons, 15000);
|
||||
}
|
||||
|
||||
priceUpdater.$run();
|
||||
|
Loading…
Reference in New Issue
Block a user