Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase on mempool upsteam commit 1b21cd89a3 #6

Merged
Changes from 1 commit
Commits
Show all changes
8318 commits
Select commit Hold shift + click to select a range
1fd07f6
Merge pull request #4731 from mempool/nymkappa/accel-list-1y
wiz Mar 4, 2024
b9d4600
Merge pull request #4733 from mempool/mononaut/tooltip-fee-rate
wiz Mar 4, 2024
75578ac
Improve timeout handling in esplora api health monitoring & logs
mononaut Nov 21, 2023
130bdac
Calculate & save acceleration bid boost rates
mononaut Feb 27, 2024
bd0de74
Add local acceleration info APIs
mononaut Feb 28, 2024
f923ee4
Accelerator audit use datetime for added column
mononaut Mar 4, 2024
8405e5f
Merge pull request #4718 from mempool/mononaut/accelerator-audit
softsimon Mar 4, 2024
f63f1b1
Websocket subscription for fallback server health status
mononaut Mar 3, 2024
5898143
Electrs server status page
mononaut Mar 3, 2024
1518b3c
Backend OFFICIAL config setting
mononaut Mar 4, 2024
5f3ca3a
Disable tomahawk status on non-official instances
mononaut Mar 4, 2024
73e9c85
Separate tomahawk nodes & network pages, misc fixes
mononaut Mar 4, 2024
847b90f
Fix db version conflicts
natsoni Mar 4, 2024
198939d
Minor typo and displaying fixes
natsoni Mar 4, 2024
62e0cb2
Merge pull request #4734 from mempool/mononaut/tomahawk-status-page
wiz Mar 5, 2024
9e1fe71
ops: Add MAX_TRACKED_ADDRESSES to prod configs
wiz Mar 5, 2024
acb60fa
ops: Add check script to production folder
wiz Mar 5, 2024
0f1434e
Bump rust-gbt deps
junderw Mar 5, 2024
c9b2ce3
Merge pull request #4737 from mempool/junderw/bump-rust-deps
wiz Mar 5, 2024
7cee151
Bump ip from 2.0.0 to 2.0.1 in /backend
dependabot[bot] Mar 5, 2024
71863e4
Polish /nodes and /network pages
mononaut Mar 5, 2024
9e5fdbb
ops: Increase nginx proxy buffer sizes
wiz Mar 6, 2024
965a135
Merge pull request #4740 from mempool/mononaut/polish-nodes
wiz Mar 6, 2024
fa4caec
Merge pull request #4628 from mempool/simon/dashboard-miner-tags
wiz Mar 6, 2024
c4a1130
Merge pull request #4278 from mempool/knorrium/add_sync_check_script
wiz Mar 6, 2024
e0e997a
Merge pull request #4549 from mempool/nymkappa/increase-mysql-pool
wiz Mar 6, 2024
cef80a3
Merge pull request #4655 from jamesblacklock/macos-docker-init
wiz Mar 6, 2024
28d23d4
Merge branch 'master' into hunicus/enterprise-cta-docs
wiz Mar 6, 2024
faa5475
Merge branch 'master' into mononaut/tomahawk-timeouts
wiz Mar 6, 2024
57a8784
Merge branch 'master' into mononaut/wallet-balance
wiz Mar 6, 2024
a2fb16c
Merge pull request #4144 from mempool/hunicus/enterprise-cta-docs
wiz Mar 6, 2024
30485e7
Merge pull request #4397 from mempool/mononaut/tomahawk-timeouts
wiz Mar 6, 2024
7f18d73
Merge pull request #4689 from mempool/mononaut/wallet-balance
wiz Mar 6, 2024
31e320b
ops: Update check git/md5 hash script
wiz Mar 6, 2024
11a6d81
Fix: Refresh Liquid icons every 15 seconds to match electrs.
junderw Mar 6, 2024
be52fd4
More status page polish
mononaut Mar 6, 2024
3178d30
Fix missing mempool blocks bug
mononaut Mar 6, 2024
1df5c5d
Updating to match crontab update
softsimon Mar 7, 2024
b988f04
Merge pull request #4743 from mempool/junderw/reload-icons
softsimon Mar 7, 2024
82716b0
Merge pull request #4745 from mempool/mononaut/missing-blocks
softsimon Mar 7, 2024
1d877a7
Merge pull request #4744 from mempool/mononaut/send-nodes
wiz Mar 7, 2024
e8c5d47
Merge branch 'master' into natsoni/federation-utxos-expiry
natsoni Mar 7, 2024
f5e1e5f
[enterprise] implement subdomain logo cache buster
nymkappa Mar 7, 2024
bfaddfc
Add CURRENCY_API_KEY option to config files
natsoni Mar 7, 2024
f121d16
Add more fiat currencies using fx rates from FreeCurrencyAPI
natsoni Mar 7, 2024
b043d69
Allow historical price api to return data of a single currency
natsoni Mar 7, 2024
7491fb5
Show accelerator audit total on block page
mononaut Mar 5, 2024
e778813
Add missing null check in block accelerations subscription
mononaut Mar 7, 2024
1d56bfa
[accelerator] remove query params for acceleration list
nymkappa Mar 8, 2024
007f424
[accelerator] update doc, split public/authenticated
nymkappa Mar 8, 2024
c4ecc16
Merge pull request #4701 from mempool/dependabot/npm_and_yarn/fronten…
softsimon Mar 8, 2024
e3bb7f7
Merge pull request #4702 from mempool/dependabot/npm_and_yarn/backend…
softsimon Mar 8, 2024
aac3b1a
Bump es5-ext from 0.10.53 to 0.10.64 in /frontend
dependabot[bot] Mar 8, 2024
29bbb92
Merge pull request #4722 from mempool/dependabot/npm_and_yarn/fronten…
softsimon Mar 8, 2024
faa5887
[accelerator] dynamically show timespan selector based on the oldest …
nymkappa Mar 8, 2024
c17b77f
Display basic mining info on transaction page
mononaut Mar 7, 2024
7af185a
Tx audit tags handle coinbase
mononaut Mar 8, 2024
dde6719
Fix stuck Goggles on websocket reconnect
mononaut Mar 8, 2024
b606282
Hide mining pools on clock blockchain
mononaut Mar 8, 2024
1665b0d
[accelerator] set accel graph bar min height
nymkappa Mar 9, 2024
020194d
Merge pull request #4723 from mempool/natsoni/federation-utxos-expiry
softsimon Mar 9, 2024
61b84e3
Merge pull request #4751 from mempool/nymkappa/dynamic-timespan-selec…
wiz Mar 9, 2024
d459e1f
Merge pull request #4746 from mempool/nymkappa/subdomain-cache-buster
wiz Mar 9, 2024
00d8241
Merge pull request #4752 from mempool/mononaut/loading-goggles
wiz Mar 9, 2024
ac971d1
Merge pull request #4748 from mempool/mononaut/transaction-mining-info
wiz Mar 9, 2024
3f07026
Merge pull request #4753 from mempool/mononaut/clockchain-pools
wiz Mar 9, 2024
0079e5d
Merge pull request #4754 from mempool/nymkappa/min-accel-graph-bar-he…
wiz Mar 9, 2024
3c2ba74
Merge pull request #4750 from mempool/nymkappa/fix-acceleration-apis
wiz Mar 9, 2024
c3d90d5
Merge pull request #4736 from mempool/mononaut/accelerator-audit-stats
wiz Mar 9, 2024
10819fd
[ui] disable sign in button in global footer
nymkappa Mar 9, 2024
bfde456
Only display docs enterprise upsell on official mempool
softsimon Mar 9, 2024
52c4dd8
[accelerator] preview cta points to mempool.space if not official build
nymkappa Mar 9, 2024
2307617
Merge branch 'master' into natsoni/more-fiat-currencies
natsoni Mar 9, 2024
ccf1121
Fetch historical data based on timestamp and currency
natsoni Mar 9, 2024
2647e94
Move accelerated badge into tx mining info field
mononaut Mar 9, 2024
fffffff
add audit=[bool] param to block hash url
russeree Mar 9, 2024
1b92c62
Update default preview image location
hunicus Mar 9, 2024
d1c12f9
Remove duplicate metadata tags
hunicus Mar 10, 2024
79f0ea7
Compress existing preview images
hunicus Mar 10, 2024
d9d92f1
Add service function for fixed preview images
hunicus Mar 10, 2024
e26e08b
Add preview image: about page
hunicus Mar 10, 2024
a0e387e
Add preview image: accelerator dashboard
hunicus Mar 10, 2024
a5b16cf
Add preview image: broadcast tx
hunicus Mar 10, 2024
26be760
Add preview image: faq
hunicus Mar 10, 2024
68af577
Update old preview images
hunicus Mar 10, 2024
60ad0b7
Add preview image: privacy policy
hunicus Mar 10, 2024
5b1f3d7
Add preview image: rbf
hunicus Mar 10, 2024
869aa7f
Add preview image: recent blocks
hunicus Mar 10, 2024
462c7f9
Add preview image: trademark policy
hunicus Mar 10, 2024
b41f196
Add preview image: tos
hunicus Mar 10, 2024
a5f864f
Explicitly set mining and lightning preview images
hunicus Mar 10, 2024
a7c4508
Add preview assets for mempool.space
hunicus Mar 10, 2024
9a730b5
Add fake p2wsh goggles
mononaut Mar 8, 2024
6d3c429
Fixing database migration conflict.
softsimon Mar 10, 2024
7bedb94
Merge pull request #4749 from mempool/mononaut/fake-p2wsh-goggles
softsimon Mar 10, 2024
ede3a12
Merge pull request #4758 from mempool/mononaut/accelerated-badge
wiz Mar 10, 2024
c55c298
Merge pull request #4755 from mempool/nymkappa/sign-in-button
wiz Mar 10, 2024
0f6b694
Switch accelerator preview images
hunicus Mar 10, 2024
a81c0a3
Add back old preview assets
hunicus Mar 10, 2024
c590a62
Merge branch 'master' into hunicus/add-preview-imgs
hunicus Mar 10, 2024
553c213
Remove mempool.space signup preview image
hunicus Mar 10, 2024
a2b0dd3
Fix block acceleration fees calculation & api
mononaut Mar 10, 2024
b111640
Add FIAT_PRICE category to backend config
natsoni Mar 10, 2024
a5099fe
Add backend checks for enabling fiat prices and update config paths
natsoni Mar 10, 2024
92a5fc8
Refactor rust-gbt
junderw Mar 10, 2024
3d61e57
Merge pull request #4761 from mempool/mononaut/fix-block-acc-fees
wiz Mar 11, 2024
c4b47e1
ops: Add mempool servers to elements.conf
wiz Mar 11, 2024
e7fde2f
Merge pull request #4759 from mempool/hunicus/add-preview-imgs
wiz Mar 11, 2024
b50d747
Add missing unfurler routes, rename images to match
wiz Mar 11, 2024
c5d382c
Fix typo build error in unfurler
wiz Mar 11, 2024
d83f483
Fix database migration fail
wiz Mar 11, 2024
5ea4ef8
Fix typo in fix for database migration fail
wiz Mar 11, 2024
0dff902
Add unfurler page for /blocks and /tx/push
wiz Mar 11, 2024
ece40c5
fix mysql query
nymkappa Mar 11, 2024
93f547e
Merge pull request #4764 from mempool/nymkappa/fix-mysql-query
wiz Mar 11, 2024
8e158e1
Fix lastHistoricalRun variable to be in seconds
natsoni Mar 11, 2024
669cf59
Set monthly granulary for fx rates
natsoni Mar 11, 2024
91ec0c8
Merge branch 'origin/HEAD' into natsoni/more-fiat-currencies and fix …
natsoni Mar 11, 2024
b99e5c4
Populate historical fiat prices from latest to oldest
natsoni Mar 11, 2024
11a4f4e
Audit past acceleration data
mononaut Mar 11, 2024
df51018
Reorder unfurler routes to be alphabetic
hunicus Mar 12, 2024
f851e82
Merge pull request #4760 from mempool/junderw/rust-gbt-build-final
softsimon Mar 12, 2024
cbc0e44
Add unfurler routes for /enterprise and /sponsor
hunicus Mar 12, 2024
fc1179f
Merge branch 'master' into hunicus/dot-space-previews
hunicus Mar 12, 2024
f0f1eb0
Remove stray console.log from #4757
wiz Mar 12, 2024
acdc5f9
Merge pull request #4757 from russeree/add-aduit-blocks-param
wiz Mar 12, 2024
fd04947
Merge pull request #4766 from mempool/mononaut/past-acceleration-fees
wiz Mar 12, 2024
0c46313
Merge pull request #4767 from mempool/hunicus/dot-space-previews
wiz Mar 12, 2024
9a531b0
Fix SQL query for `/api/v1/accelerations/block/:height` for older blocks
wiz Mar 12, 2024
023b2f7
Tweak CSS color for OOB fees on block component
wiz Mar 12, 2024
860aac0
[accelerator] add provisional status
nymkappa Mar 12, 2024
a95d179
Add fake entry for missing price data before 2010-07-19
natsoni Mar 12, 2024
ab93a45
Move the on the sponsor preview image
hunicus Mar 13, 2024
5ecb915
Fix db version conflicts
natsoni Mar 13, 2024
8cb040e
Bump cypress from 13.6.2 to 13.7.0 in /frontend
dependabot[bot] Mar 14, 2024
c12e664
Merge pull request #4769 from mempool/hunicus/the-the-preview
softsimon Mar 14, 2024
0fcfc5e
Merge branch 'master' into natsoni/more-fiat-currencies
softsimon Mar 14, 2024
7bc6ef2
Fix tx fee to display historical price
natsoni Mar 14, 2024
e171c76
Update acceleration audit to match latest bid boost version
mononaut Mar 15, 2024
4048921
Fix recent replacements skeleton loader
mononaut Mar 15, 2024
8427127
Simplify recent transactions observable
mononaut Mar 15, 2024
8dbfa1c
Merge branch 'master' into nymkappa/provisional-status
nymkappa Mar 15, 2024
120ffdb
Simplify pool details table
mononaut Mar 15, 2024
a44219a
Add out of band fees to pools page
mononaut Mar 15, 2024
fb852b7
Increase precision of out-of-band fees on the block page
mononaut Mar 15, 2024
31d3566
Fix tx push unfurl preview
mononaut Mar 15, 2024
81c8c8d
Merge pull request #4747 from mempool/natsoni/more-fiat-currencies
softsimon Mar 16, 2024
0b17329
Merge pull request #4768 from mempool/nymkappa/provisional-status
wiz Mar 16, 2024
dd7c8f2
Merge pull request #4772 from mempool/mononaut/replacement-skeleton
wiz Mar 16, 2024
d3c5cbd
Merge pull request #4771 from mempool/mononaut/update-bid-boost
wiz Mar 16, 2024
d03e7b2
Merge branch 'master' into mononaut/accelerator-audit-pools
wiz Mar 16, 2024
fd41dfc
Merge pull request #4774 from mempool/mononaut/accelerator-audit-pools
wiz Mar 16, 2024
9e1cf51
Merge pull request #4776 from mempool/mononaut/fix-new-unfurls
wiz Mar 16, 2024
b5fa449
Merge pull request #4775 from mempool/mononaut/oob-block-precision
wiz Mar 16, 2024
d5e591c
Merge pull request #4773 from mempool/mononaut/simplify-recent-txs
wiz Mar 16, 2024
d5cca29
Merge pull request #4770 from mempool/dependabot/npm_and_yarn/fronten…
softsimon Mar 16, 2024
2d8111a
Bump follow-redirects from 1.15.5 to 1.15.6 in /frontend
dependabot[bot] Mar 16, 2024
5ac87c0
Bump follow-redirects from 1.15.5 to 1.15.6 in /backend
dependabot[bot] Mar 16, 2024
f54bdac
Fix pool page accelerator fees
mononaut Mar 16, 2024
1dd7241
Merge branch 'master' into mononaut/fix-acc-pool-fees
wiz Mar 16, 2024
c78a14c
Merge pull request #4780 from mempool/mononaut/fix-acc-pool-fees
wiz Mar 16, 2024
29c0131
Merge pull request #4779 from mempool/dependabot/npm_and_yarn/backend…
softsimon Mar 16, 2024
1c76a60
Merge pull request #4778 from mempool/dependabot/npm_and_yarn/fronten…
softsimon Mar 16, 2024
2245109
[accelerator] show ~ for pending accel in the block column
nymkappa Mar 17, 2024
df107d3
Fixing undefined error
softsimon Mar 17, 2024
2dc6f6f
Display more accurate price on prevout/spent outputs in bowtie tooltip
natsoni Mar 17, 2024
a8fa7dc
Fix pool oob fees table mobile layout
mononaut Mar 17, 2024
acd9c23
Fixing scss flexbox warnings
softsimon Mar 17, 2024
43232b9
Fix broken load more for P2PK address page
natsoni Mar 17, 2024
a04d685
Change tooltip text "ago" -> "earlier"
natsoni Mar 17, 2024
788d1de
Merge pull request #4783 from mempool/mononaut/pool-acc-fees-mobile
softsimon Mar 18, 2024
30c033b
Merge pull request #4695 from mempool/dependabot/docker/docker/fronte…
softsimon Mar 18, 2024
9fa6d23
Merge pull request #4696 from mempool/dependabot/docker/docker/fronte…
softsimon Mar 18, 2024
dbecb73
Merge pull request #4782 from mempool/nymkappa/no-block-accel-list
softsimon Mar 18, 2024
34d93ab
Merge pull request #4784 from mempool/simon/scss-flex-warning-fixes
softsimon Mar 18, 2024
b7d9efe
Merge pull request #4785 from mempool/natsoni/bowtie-tooltip-price
softsimon Mar 18, 2024
f1b9a0f
Merge pull request #4697 from mempool/dependabot/docker/docker/backen…
softsimon Mar 18, 2024
634b461
Merge pull request #4787 from mempool/natsoni/fix-load-more-p2pk
softsimon Mar 18, 2024
82ba80d
Add /docs/api unfurler image
hunicus Mar 18, 2024
2c6f210
Account menu overlays UI instead of pushing it
natsoni Mar 18, 2024
cca7c7e
Update doc for historical price endpoint
natsoni Mar 18, 2024
40663c7
Merge branch 'master' into natsoni/account-menu-overlay
nymkappa Mar 19, 2024
e53254f
Merge pull request #4791 from mempool/natsoni/update-doc-historical-p…
softsimon Mar 19, 2024
8edd2b5
Fix fiat price displayed on test networks
natsoni Mar 19, 2024
4e45993
Add missing additional currencies flag in frontend config
natsoni Mar 19, 2024
482493f
Merge pull request #4794 from mempool/natsoni/add-currency-frontend-c…
softsimon Mar 19, 2024
92d960a
Merge pull request #4789 from mempool/hunicus/api-docs-unfurler
softsimon Mar 19, 2024
fc5b2c0
Flex justified navbar
softsimon Mar 19, 2024
f6dbe1e
Add page number to URL in blocks table
natsoni Mar 19, 2024
48d852f
Merge pull request #4798 from mempool/simon/flex-justified-navbar
softsimon Mar 20, 2024
6b9159b
Add URL pagination to block transaction list
natsoni Mar 20, 2024
666165e
Add key navigation support to blocks list
natsoni Mar 20, 2024
524619f
Add URL pagination and keyboard navigation to Liquid pegs list
natsoni Mar 20, 2024
82f1fa5
Add balance graph to address page
mononaut Mar 18, 2024
2c16dda
Address chart support p2pks
mononaut Mar 20, 2024
19b0c4e
Merge pull request #4792 from mempool/mononaut/address-balance-graph
softsimon Mar 20, 2024
7b6163c
Fix bowtie tooltip bug
natsoni Mar 20, 2024
7bf7d02
Merge pull request #4802 from mempool/natsoni/fix-bowtie-tooltip-bug
softsimon Mar 21, 2024
f8a1fc6
Fix address chart y-axis labels
mononaut Mar 21, 2024
7f2d77a
Merge pull request #4793 from mempool/natsoni/fix-fiat-price-on-tesnet
softsimon Mar 21, 2024
393181f
Set absolute menu in sticky header by @mononaut
natsoni Mar 21, 2024
4ce0497
Improve select truncated strings
softsimon Mar 21, 2024
5249fb1
Merge pull request #4790 from mempool/natsoni/account-menu-overlay
softsimon Mar 21, 2024
78f03bd
Merge pull request #4803 from mempool/mononaut/fix-address-chart-axis
softsimon Mar 21, 2024
5deb8c3
Allow smooth key navigation in block table and pegs table
natsoni Mar 20, 2024
c18779b
Refactoring debounce mechanism
softsimon Mar 21, 2024
3dd3284
Add click navigation to balance history chart
mononaut Mar 21, 2024
ea94dfc
[refactor] cleanup dead code
nymkappa Mar 21, 2024
1b971bf
Merge pull request #4807 from mempool/nymkappa/cleanup-lightning-code
softsimon Mar 22, 2024
adda511
Refactor key navigation on recent pegs table
natsoni Mar 22, 2024
00a94f9
Merge pull request #4799 from mempool/natsoni/blocks-table-url-pagina…
softsimon Mar 22, 2024
c47822c
[menu] fix css
nymkappa Mar 22, 2024
68b55db
restore basic Angular Universal build
mononaut Sep 26, 2023
1bb625f
Cleaner SSR server routing
mononaut Oct 18, 2023
4e26e1f
SSR ResizeObserver shim
mononaut Oct 18, 2023
e6fb931
Fix default mining pool img fallback behavior
mononaut Oct 18, 2023
a2b9b0c
Exclude echarts from server-side rendering
mononaut Oct 18, 2023
cfdbd93
Fix SSR matchMedia shim
mononaut Oct 18, 2023
6464f6d
Exclude webgl block viz from SSR rendering
mononaut Oct 18, 2023
10e468d
Fix hashrate difficulty SSR state dependency
mononaut Oct 18, 2023
29aaeef
Fix deprecated SSR state transfer imports
mononaut Oct 18, 2023
5b4132b
SSR: fix incoming tx graph init state
mononaut Oct 25, 2023
c5822b1
SSR zone macrotask utilities, solve tx page initial state
mononaut Oct 28, 2023
1ae5f05
SSR: init latest replacements on server side
mononaut Oct 28, 2023
bcd3377
SSR: fix mining dashboard initial layout
mononaut Oct 29, 2023
abd7f62
SSR: preserve transferstate api response headers
mononaut Oct 29, 2023
9cd3382
SSR: dirty hack to fix initial blockchain scroll
mononaut Oct 29, 2023
4fbbff6
SSR: fix transferstate block ordering
mononaut Oct 29, 2023
ab5ee53
SSR: solve block page initial state
mononaut Oct 29, 2023
ed73c1e
SSR: fix clock page timeout
mononaut Oct 31, 2023
99730d0
SSR: fix graph loading indicators
mononaut Nov 2, 2023
b167848
SSR: Fix initial state of lightning pages & graphs
mononaut Nov 2, 2023
c926088
SSR: Fix block viz loading indicators
mononaut Nov 4, 2023
48af95d
SSR: placeholder bowtie diagram while loading
mononaut Nov 4, 2023
50e656b
SSR: fix merge/version conflicts
mononaut Jan 25, 2024
6e2f17b
SSR: Fix more merge/version conflicts
mononaut Mar 20, 2024
3aa12c9
Merge pull request #4806 from mempool/mononaut/address-chart-navigation
softsimon Mar 22, 2024
e01df9e
Merge pull request #4809 from mempool/nymkappa/polish-menu
softsimon Mar 22, 2024
0a24a9e
[accelerator] disable ui elements on subdomain
nymkappa Mar 22, 2024
d6f1b51
Show goggles badges on block overview tooltip
mononaut Mar 22, 2024
b4d0b75
Merge pull request #4321 from mempool/mononaut/ssr
softsimon Mar 22, 2024
15062b8
Removing goggles icon
softsimon Mar 23, 2024
4374e6e
Merge pull request #4810 from mempool/mononaut/tx-tags
softsimon Mar 23, 2024
abbc8a1
Merge pull request #4811 from mempool/nymkappa/hide-accel-subdomain
wiz Mar 23, 2024
00dcff5
Add Goggles filters tags to the transaction page
mononaut Mar 22, 2024
48b8232
Adjust transaction details table layout
mononaut Mar 23, 2024
21b3e40
Merge pull request #4812 from mempool/mononaut/tx-page-tags
softsimon Mar 23, 2024
484e032
Reusable component & pipe for http error rendering
mononaut Mar 21, 2024
13fb75f
Extend http interceptor to normalize errors
mononaut Mar 21, 2024
1b21cd8
Merge pull request #4805 from mempool/mononaut/http-error-handling
softsimon Mar 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve timeout handling in esplora api health monitoring & logs
mononaut committed Mar 4, 2024
commit 75578ac9fa5ac4b08bd19fa332bc184c16f09a3c
11 changes: 9 additions & 2 deletions backend/src/api/bitcoin/esplora-api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import config from '../../config';
import axios, { AxiosResponse } from 'axios';
import axios, { AxiosResponse, isAxiosError } from 'axios';
import http from 'http';
import { AbstractBitcoinApi } from './bitcoin-api-abstract-factory';
import { IEsploraApi } from './esplora-api.interface';
@@ -10,6 +10,7 @@ interface FailoverHost {
host: string,
rtts: number[],
rtt: number,
timedOut?: boolean,
failures: number,
latestHeight?: number,
socket?: boolean,
@@ -108,11 +109,17 @@ class FailoverRouter {
host.rtts = [];
host.rtt = Infinity;
}
host.timedOut = false;
} catch (e) {
host.outOfSync = true;
host.unreachable = true;
host.rtts = [];
host.rtt = Infinity;
if (isAxiosError(e) && (e.code === 'ECONNABORTED' || e.code === 'ETIMEDOUT')) {
host.timedOut = true;
} else {
host.timedOut = false;
}
}
host.checked = true;

@@ -143,7 +150,7 @@ class FailoverRouter {

private formatRanking(index: number, host: FailoverHost, active: FailoverHost, maxHeight: number): string {
const heightStatus = !host.checked ? '⏳' : (host.outOfSync ? '🚫' : (host.latestHeight && host.latestHeight < maxHeight ? '🟧' : '✅'));
return `${host === active ? '⭐️' : ' '} ${host.rtt < Infinity ? Math.round(host.rtt).toString().padStart(5, ' ') + 'ms' : ' - '} ${!host.checked ? '⏳' : (host.unreachable ? '🔥' : '✅')} | block: ${host.latestHeight || '??????'} ${heightStatus} | ${host.host} ${host === active ? '⭐️' : ' '}`;
return `${host === active ? '⭐️' : ' '} ${host.rtt < Infinity ? Math.round(host.rtt).toString().padStart(5, ' ') + 'ms' : (host.timedOut ? ' ⌛️💥 ' : ' - ')} ${!host.checked ? '⏳' : (host.unreachable ? '🔥' : '✅')} | block: ${host.latestHeight || '??????'} ${heightStatus} | ${host.host} ${host === active ? '⭐️' : ' '}`;
}

private updateFallback(): FailoverHost[] {