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
3059d08674
error on max_head_block_age and keep the sender alive longer
2023-07-10 22:17:15 -07:00
Bryan Stitt
fe39ad1e1e
Revert "Revert "fixes for disconnect and config reloads""
...
This reverts commit 3cfbc3cbf124caf9154ffe6a444082cb0c3e20a1.
2023-07-10 20:59:03 -07:00
Bryan Stitt
3cfbc3cbf1
Revert "fixes for disconnect and config reloads"
...
This reverts commit 50fed0b0e79778d17bb40df96a11e44341dde0d1.
2023-07-10 20:30:10 -07:00
Bryan Stitt
50fed0b0e7
fixes for disconnect and config reloads
2023-07-10 19:41:14 -07:00
Bryan Stitt
31f772591b
put rpcs in a rwlock again
2023-07-10 18:09:58 -07:00
Bryan Stitt
0181347b42
one less clone
2023-07-10 15:41:55 -07:00
Bryan Stitt
e80d1bd23a
add more to Web3Rpcs debug
2023-07-10 15:31:10 -07:00
Bryan Stitt
a7f1c043c5
sync before Serialize
2023-07-10 15:26:00 -07:00
Bryan Stitt
9ef08c80e1
remove parking_lot
2023-07-10 11:05:07 -07:00
Bryan Stitt
78c6179f02
clean up rate limit logging
2023-07-07 15:56:46 -07:00
Bryan Stitt
0e3fdfa0ea
cache eth_getLogs fromBlock properly
2023-07-05 23:13:42 -07:00
Bryan Stitt
eb7b98fdbe
Split errors ( #158 )
...
* add migration for splitting errors
* fix type from u32 to u64
* update entities to match migrations
* no migration needed. these are only in stats
* add user_error_response to influx
* only if detailed
* set error_response and user_error_response
* 0 cost error responses
* only 33 migrations now
* put macros back
* get the stat buffer sender to the TestApp helper
* fixes
2023-07-05 18:18:10 -07:00
Bryan Stitt
5da334fcb7
start adding tests that need docker for mysql management
2023-06-29 22:38:35 -07:00
Bryan Stitt
335480cec9
more tracing logs
2023-06-29 10:15:12 -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
df865292a7
add another layer of retries
2023-06-28 15:12:16 -07:00
Bryan Stitt
ec7c8f0434
todo
2023-06-27 17:08:49 -07:00
Bryan Stitt
cdea61cb6b
one list for ranked rpcs
2023-06-27 15:55:29 -07:00
Bryan Stitt
b35ad330c9
save last provider error
2023-06-26 23:04:56 -07:00
Bryan Stitt
917dfc914f
handle more jsonrpc errors as HTTP 200
2023-06-26 22:40:00 -07:00
Bryan Stitt
0d1e629567
more tracing and error handling
2023-06-26 21:11:43 -07:00
Bryan Stitt
efe1e30791
better handling of 0 port and fix test port
2023-06-24 20:38:06 -07:00
Bryan Stitt
0c10994835
why wont that import?
2023-06-24 16:45:07 -07:00
Bryan Stitt
94d0a25aaf
test logs
2023-06-24 16:43:11 -07:00
Bryan Stitt
fef03f089f
less verbose db_conn and db_replica helpers
2023-06-24 11:11:07 -07:00
Bryan Stitt
30828ccae2
prioritize block. queries to syncing nodes ends up being slower
2023-06-24 00:41:30 -07:00
Bryan Stitt
fd661689a3
Tracing ( #144 )
...
* tracing
* add tracing and features to match
* use just one hostname crate
* cargo upgrade
* set up pretty logger and sentry layer
2023-06-23 16:28:45 -07:00
Bryan Stitt
4dad743fc3
tuple, not list
2023-06-21 10:01:51 -07:00
Bryan Stitt
f75f3f8d2f
serialize caches in a list
2023-06-21 10:00:05 -07:00
Bryan Stitt
3c2f95de10
Improve max wait and timeouts ( #137 )
...
* pass max wait with more functions
* move rpc_head_str higher up to use it in all the logs
* refresh consensus at double the block time
* new pricing that also includes archive check
* lint
* don't clone method
* put caches into one list
they serialize with their name, so it will still be easy to tell them apart
* more consistent waiting. still waits more than I want right now
* clean up default max waits
* more timeouts
2023-06-20 14:22:14 -07:00
Bryan Stitt
ba410cf126
better log message
2023-06-18 16:41:01 -07:00
Bryan Stitt
825ba006f1
move floats and durations around for latency tracking
2023-06-18 10:46:22 -07:00
Bryan Stitt
8b22c9861b
Revert "temp fix while filtering is improved"
...
This reverts commit 5367c511953fcea1af3da1d905de06d9e76711ba.
2023-06-17 12:15:40 -07:00
Bryan Stitt
5367c51195
temp fix while filtering is improved
2023-06-17 12:09:04 -07:00
Bryan Stitt
3b65074f38
cleaner duration multiplication
2023-06-17 11:33:33 -07:00
Bryan Stitt
eab86c7ee8
automatic max_head_block_age
2023-06-17 10:13:40 -07:00
Bryan Stitt
bf13e86a04
warn if no max_head_block_age
2023-06-17 09:19:05 -07:00
Bryan Stitt
86f9e7358a
move balance onto AuthorizationChecks ( #131 )
...
* move balance onto AuthorizationChecks
* todone
* bigger default
* flat cost for testing
2023-06-16 23:14:43 -07:00
Bryan Stitt
af7759e491
by_name needs a lock to prevent races during disconnects
2023-06-16 10:40:02 -07:00
Bryan Stitt
a083bc652d
Handle uncle transactions ( #129 )
...
* add more columns to handle uncled transactions
* handle payment uncles
* put relations back
* include all the new columns
* lower log levels
* improve block caching
if we have a block with a number, its canonical. uncles don't get returned
* improve disconnect logic
* lint
* clear first changed for new_top_config_receiver
* better logs around config changing
* i guess we do want one apply top_config at the start
* check correct variable for data limits
2023-06-16 00:46:27 -07:00
Bryan Stitt
f5a1ac274a
refactor send_head_block_result
2023-06-13 10:00:08 -07:00
Bryan Stitt
1473ccb085
gentler parsing of new head blocks
2023-06-13 09:31:22 -07:00
Bryan Stitt
1a8f799969
we need our own Reconnect ( #124 )
...
* first pass at handling different return data limits
* put ws_provider in an arcswap
* add min max_latency
* add min max_latency
* subscribe with reconnect
* better logging around reconnect
* select on both watches
* subscribe to the correct watch
2023-06-12 18:58:51 -07:00
Bryan Stitt
f1176685dd
pause time on more tests
2023-06-12 11:08:33 -07:00
Bryan Stitt
4a9c1a0ce6
move user registration into a dedicated function
2023-06-09 18:31:47 -07:00
Bryan Stitt
8bf0ee473d
loud log on rollback
2023-06-09 13:30:00 -07:00
Bryan Stitt
bd87fcb13c
move sort and shuffle for loadbalancing into proper functions
2023-06-09 13:09:58 -07:00
Bryan Stitt
1f3040f6c7
automated tiers
2023-06-09 12:21:55 -07:00