Commit Graph

903 Commits

Author SHA1 Message Date
a10zn8
a47607d03d In case empty selector in SubscribeNative we should use default dynamic merged head. (#172) 2023-03-19 16:07:14 +03:00
a10zn8
153e5115ff head lag observer throttling - fix test (#170) 2023-03-17 18:42:09 +03:00
a10zn8
1ef8b7499c head lag observer throttling (#169) 2023-03-17 17:57:19 +03:00
a10zn8
d34848fb87 Log errors and info about node status subscription (#168) 2023-03-17 17:00:12 +03:00
KirillPamPam
397ddd7865 Fix issues with caches
- Fix read block
- Fix read not enrich blocks, refactoring read tx receipts
2023-03-17 14:05:18 +03:00
a10zn8
1bca196387 New default chain settings for Arbitrum and Optimism and their testnets (#164) 2023-03-17 14:00:22 +03:00
a10zn8
4fcff6a8e0 rework of grpc head connection retries (#166) 2023-03-16 19:17:26 +03:00
KirillPamPam
ef6ff919bd Fix getting not enrich blocks (#165) 2023-03-16 19:42:02 +04:00
KirillPamPam
f7451c54eb Revert save not enriched to cache (#163) 2023-03-16 18:07:40 +04:00
KirillPamPam
a0dfb86c54 Turn off caches for main, fix cache not enrichment blocks (#160) 2023-03-15 13:38:07 +04:00
Vyacheslav Shebanov
26d518d98e Debug methods group
Added debug methods group for easier enabling debug_* methods
2023-03-14 22:51:16 +02:00
a10zn8
7c1e8a00df In case disabled enrichment and native subscription without proxy we should have fallback enrichment of blocks (#159) 2023-03-14 15:04:11 +03:00
a10zn8
3a48eceaed disable enhancement grpc blocks (#158) 2023-03-14 13:54:40 +03:00
Vadim Vlasov
e3c39f601e Disable height matcher when passthrough is on (#157)
* disable height matcher when passthrough is on

* add test

* fix review issues
2023-03-14 16:16:36 +08:00
Vadim Vlasov
d3e215b940 Add height matcher for method (#156)
* add height matcher for method

* add test

* add test for block methods fix
2023-03-13 17:39:56 +08:00
KirillPamPam
01ea756e33 Add SpanReader wrapper for creating additional spans (#155) 2023-03-07 13:42:34 +04:00
a10zn8
03cbf25d87 Add optimism and arbitrum testnets - fix typo (#152) 2023-03-01 13:09:25 +03:00
a10zn8
f025a68b72 Add optimism and arbitrum testnets (#151) 2023-03-01 13:06:03 +03:00
a10zn8
00a1490726 Upstream configuration improvement: (#149)
- now we can specify connector mode for better fine tuning of connection
2023-02-27 14:22:50 +05:00
Vyacheslav Shebanov
1ec3d44484 new upstream change type — updated, triggered when upstream methods changed (#148) 2023-02-23 20:25:46 +02:00
a10zn8
1698bf7002 Upstream enhancement improvement: (#147)
- now we don't enrich PoS blocks - now is default
2023-02-23 14:33:35 +05:00
a10zn8
312293d626 Upstream validation and enhancement improvement: (#146)
- now validation of upstream starts immediately after upstream starts - it allows it became available asap
- now we don't enrich PoS blocks which improves performance and decrease number of requests to node
2023-02-23 13:41:46 +05:00
a10zn8
30da584388 Changes in logging (#145)
- move noisy logging to trace level
- log entire broken ws message
2023-02-20 18:31:10 +04:00
KirillPamPam
8310d79f9c Show error spans like in dproxy (#144) 2023-02-20 14:30:41 +04:00
KirillPamPam
04d1334af6 Add json logging and tracing (#131) 2023-02-17 16:39:35 +04:00
a10zn8
2c33410d0a change max interval of ws reconnect to 1 minute (#142) 2023-02-17 16:12:14 +04:00
a10zn8
1683be8dac more granular config for upstream validation 2023-02-15 19:13:10 +04:00
a10zn8
268537f727 Support for widers scope of providers
- we need to read full block in case transactions is empty OR totalDifficulty is null
- we need to log errors in upstream validation process
2023-02-14 23:04:02 +04:00
a10zn8
6d78b4927d Adjustments in availability determination:
- now isAvailable return true in case upstreams are OK or LAGGING
- All upstreams in Filtered API now sorted by status
2023-02-13 19:19:25 +04:00
a10zn8
6af3e0aeca fix wildcards 2023-02-13 19:18:27 +04:00
a10zn8
06a38ffaf7 fix wildcards 2023-02-13 18:59:56 +04:00
Vadim Vlasov
e91f75b367 add gRPC-client compression (#136)
* add upstream grpc-client compression

* fix review issues
2023-02-13 22:47:48 +08:00
a10zn8
dc7ca5b642 disable star imports in editorconfig and format all imports 2023-02-13 18:11:45 +04:00
a10zn8
2809e87d33 config merge 2023-02-13 17:07:58 +04:00
a10zn8
ad0d0b2b57 refactoring 2023-02-10 20:22:35 +04:00
a10zn8
ff4c538568 added chains configuration 2023-02-10 17:56:21 +04:00
Vadim Vlasov
8649cc03aa add option to enable compression for gRPC-server (#133)
* add grpc server compression

* change compression config defaults

* fix review issue

* add note about compression in readme

* add compression section to server config doc
2023-02-10 17:27:52 +08:00
Vadim Vlasov
fc36e63ea6 add detailed upstream availability metrics (#132)
* add detailed upstream availability metrics

* fix review issues
2023-02-09 13:28:44 +08:00
a10zn8
0eb3523027 Merge pull request #130 from p2p-org/more-about-subscribe-statuses
more event sending
small log changes
2023-02-06 15:14:06 +04:00
a10zn8
cf8ec812e1 fixes for node subscribe:
- more event sending
- small log changes
2023-02-06 14:57:40 +04:00
KirillPamPam
02f81c7029 Merge pull request #128 from p2p-org/height_matcher
Add height matcher for getBlockByHash, getBlockByNumber and getTransactionByBlock*
2023-02-06 14:48:48 +04:00
Кирилл
0792494d90 Add height matcher for methods by block 2023-02-03 18:12:19 +04:00
Vadim Vlasov
bcc07b131f add sepolia testnet (#129) 2023-02-02 16:15:59 +03:00
KirillPamPam
3a8d5d536a Merge pull request #126 from p2p-org/fix_retries
Fix retries
2023-02-01 14:07:07 +04:00
Кирилл
a049a54854 Fix retries 2023-02-01 14:00:13 +04:00
a10zn8
ad5d23cb32 Merge pull request #11 from p2p-org/node-status-sub-id
id for subscription for node statuses
2023-01-31 12:50:45 +04:00
KirillPamPam
b09bef4b5a Merge pull request #124 from p2p-org/ws_connection_pool
Add ws connection pool
2023-01-26 19:17:05 +04:00
Кирилл
ed0c5cb517 Add ws connection pool 2023-01-26 15:53:00 +04:00
a10zn8
1e8c4e1ab1 Change Status class to data class for better logging
Log every node status change in blockchain rpc
2023-01-25 13:29:58 +04:00
a10zn8
8eac1178ec propagate grpc provided upstream id 2023-01-24 19:59:34 +04:00