Commit Graph

89 Commits

Author SHA1 Message Date
Bryan Stitt
10dd616d31 rename Web3ProxyBlock to BlockHeader 2023-11-23 00:17:46 -04:00
Bryan Stitt
be03d6f4f0 explicit eth_blockNumber 2023-11-21 23:21:03 -04:00
Bryan Stitt
efc06f8ae6 optional external script during graceful shutdown 2023-11-03 16:00:55 -07:00
Bryan Stitt
9b6cf32faa error if block range is >200k 2023-11-03 11:51:02 -07:00
Bryan Stitt
5a642d3086 cache getBlockByNumber better 2023-11-03 11:16:49 -07:00
Bryan Stitt
723199076c shorter log 2023-11-01 22:30:22 -07:00
Bryan Stitt
75de83b49b Revert "don't change for now"
This reverts commit 8ad2d20f43fed40f56e48a817228b48e99cb5fee.
2023-11-01 10:33:00 -07:00
Bryan Stitt
8ad2d20f43 don't change for now 2023-11-01 09:35:34 -07:00
Bryan Stitt
21755992c4 BlockNumAndHash here only needs one get 2023-10-31 19:56:49 -07:00
Bryan Stitt
013994994d BlockNumOrHash more places 2023-10-31 19:56:49 -07:00
Bryan Stitt
51594cb1c0 split cache_block and to_block 2023-10-31 19:04:20 -07:00
Bryan Stitt
2724cfa95e don't actually change get_logs
this has its own edge case, but i need more tests before i trust the change
2023-10-29 20:35:25 -07:00
Bryan Stitt
47d2a62555 improve CacheMode on eth_getLogs 2023-10-27 15:41:24 -07:00
Bryan Stitt
45fb2e5ea6 require premium for debug module 2023-10-23 15:38:44 -07:00
Bryan Stitt
c507cc89d3 dont cache transaction queries so that to_block is None 2023-10-20 12:30:10 -07:00
Bryan Stitt
ce3fbca7b6 fix eth_sendRawTransaction 2023-10-13 19:41:59 -07:00
Bryan Stitt
51ba539800 bring back outer rpc checking 2023-10-12 23:57:12 -07:00
Bryan Stitt
e43309abc0 move permits around and start rpcs slower 2023-10-11 04:18:53 -07:00
Bryan Stitt
57f8c4bd40 split web3_proxy/src/jsonrpc.rs into multiple files and DRY it up 2023-10-11 00:12:20 -07:00
Bryan Stitt
a9d5006ced get rid of async recursion 2023-10-10 23:32:50 -07:00
Bryan Stitt
86f70332be use web3_rpcs.blocks_by_hash.get instead of something that might make queries 2023-10-10 20:54:17 -07:00
Bryan Stitt
e917a11d6c
Suprisingly large refactor to get ids everywhere (#222)
* cargo upgrade --incompatible and update

* first draft at suprisingly_large_refactor_to_get_ids_everywhere

* put app in a task_local

* ref cleanup

* use a OnceLock instead of a tokio local

* test more methods

* APP isn't set in all tests

* it compiles. tests fail. todos still open

* use the app only when necessary

* more tests. less panic

* less verbose debug impl

* short enum names

* move kafka and secrets to their own files

* main tests pass

* add debug chain block time

* helper for stats that ignores internal stats

* Update Jenkinsfile (#223)

* more tests

---------

Co-authored-by: Pewxz <124064710+pewxz@users.noreply.github.com>
2023-10-03 13:46:27 -07:00
Bryan Stitt
abe516c21e turn down logging on eth_getLogs for now 2023-09-29 10:37:49 -07:00
Bryan Stitt
e4d3a736d0 return an error earlier 2023-09-19 19:22:28 -07:00
Bryan Stitt
1fd8f6f383
Deduped broadcast channel (#209)
* upgrade and start adding deduped_broadcast

* basic test

* accept arg for cache ttl

* first pass at bringing the tx firehose back

* try_send instead of send since there aren't always receivers

* deduped broadcaster needs the try send

* track counts and include in /status

* use config for enable subscribe_txs
2023-09-13 12:05:47 -07:00
Bryan Stitt
54341c4654 learn to cache more 2023-08-15 16:37:53 -07:00
Bryan Stitt
70d75d5acb exit early when empty params array 2023-08-15 16:20:25 -07:00
Bryan Stitt
b742a25729 dont return max depth so we can do cannonical block faster 2023-08-15 16:12:40 -07:00
Bryan Stitt
3f932b9d57 also bump cli version 2023-08-08 15:58:21 -07:00
Bryan Stitt
a844c5f624 remove accidental todos 2023-08-08 15:52:11 -07:00
Bryan Stitt
8ea587120b handle functions that need the block num instead of the hash 2023-08-08 15:50:34 -07:00
Bryan Stitt
74224977b7 Revert "Revert "remove max_tries for now""
This reverts commit 5fbcb75157cd012b723c9d2b37bb7947e5e05aa5.
2023-08-03 09:15:31 -07:00
Bryan Stitt
5fbcb75157 Revert "remove max_tries for now"
This reverts commit e0d7d11398163bb8554cd6736d1dbc7f55caaa24.
2023-08-03 00:22:45 -07:00
Bryan Stitt
e0d7d11398 remove max_tries for now
i think this is causing problematic looping
2023-08-02 22:07:28 -07:00
Bryan Stitt
ca92b3646c cache eth_feeHistory and eth_gasPrice 2023-07-28 10:41:23 -07:00
Bryan Stitt
1185b2d0f9 cache eth_maxPriorityFeePerGas with the head block 2023-07-28 10:38:12 -07:00
Bryan Stitt
dce3540ee3 less authorization and remove pending txs for now 2023-07-13 11:01:16 -07:00
Bryan Stitt
0f7e370c92 drop flume. just use tokio
i dont know if this is the problem, but this will also get compile times down
2023-07-10 23:08:06 -07:00
Bryan Stitt
2ea53cc396 could not get block from params should be error level 2023-07-09 22:52:29 -07:00
Bryan Stitt
b476a56ad6 check for U64 instead of just BlockNumber
i thouht block number would be smart enough to deserialize, but it seems like not
2023-07-07 15:28:24 -07:00
Bryan Stitt
512bcf305b lint 2023-07-07 14:06:35 -07:00
Bryan Stitt
f6fea1541b this is warn, not an error 2023-07-07 12:21:25 -07:00
Bryan Stitt
0e3fdfa0ea cache eth_getLogs fromBlock properly 2023-07-05 23:13:42 -07:00
Bryan Stitt
357701bccc no need to check the caches, we have latest block 2023-06-29 00:06:58 -07:00
Bryan Stitt
ebceb0d7d6 descriptive text on NotImplemented errors 2023-06-28 21:47:06 -07:00
Bryan Stitt
d0e77237fa raise log level 2023-06-28 21:38:57 -07:00
Bryan Stitt
fba41b9bc2 lots of tracing improvements 2023-06-28 21:30:00 -07:00
Bryan Stitt
e8d992168c more logs and retries 2023-06-28 18:36:17 -07:00
Bryan Stitt
3cfbc5baa4 improve cache keys and allow failures while parsing params 2023-06-28 17:42:49 -07:00
Bryan Stitt
df865292a7 add another layer of retries 2023-06-28 15:12:16 -07:00