Bryan Stitt
ac4b7e46b4
actually import info level
2023-06-23 22:54:02 -07:00
Bryan Stitt
6edf1a5c1b
info on new block
2023-06-23 22:52:42 -07:00
Bryan Stitt
89330cfba0
upstream ethers again
2023-06-23 22:23:51 -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
3fac4248d6
Revert "just use Ulid instead of RpcSecretKey type"
...
It did work
This reverts commit 377e8356a57d80dd17b746dd05a62b475d9e7d07.
2023-06-23 01:29:11 -07:00
Bryan Stitt
377e8356a5
just use Ulid instead of RpcSecretKey type
2023-06-23 01:28:47 -07:00
Bryan Stitt
68ab9b6d1d
always serialize RpcSecretKey as a ULID
2023-06-23 01:07:54 -07:00
Bryan Stitt
6b6fac396f
lower default web3_proxy::rpcs::consensus level
2023-06-22 22:45:43 -07:00
Bryan Stitt
b1b8346db9
#123 role to rpc keys ( #142 )
...
* added roles to rpc keys
* dont unwrap
---------
Co-authored-by: yenicelik <david.yenicelik@gmail.com>
2023-06-22 12:56:19 -07:00
Bryan Stitt
c79b787e13
allow setting referral code if not already set ( #141 )
2023-06-22 12:41:05 -07:00
Bryan Stitt
376b9f474d
use short syntax for json data in logs
2023-06-22 12:10:23 -07:00
Bryan Stitt
f593667169
fix lifetimes
2023-06-22 10:16:58 -07:00
Bryan Stitt
66212b5cf5
cargo upgrade --incompatible -p itertools
2023-06-22 09:26:57 -07:00
Bryan Stitt
dffff65950
allow no referrer_record
2023-06-22 09:25:12 -07:00
Bryan Stitt
c560a59ef0
add more headers for debug endpoints and use more refs
2023-06-21 22:11:26 -07:00
Bryan Stitt
095a505017
cargo upgrade
2023-06-21 17:57:53 -07:00
Bryan Stitt
662bbb296f
add header debug endpoint
2023-06-21 11:28:33 -07:00
Bryan Stitt
63c4f9e591
allow no ip
...
this shouldn't be needed, but is a workaround while we debug staging
2023-06-21 11:28:22 -07:00
Bryan Stitt
7f4da8d43c
lint
2023-06-21 10:40:55 -07:00
Bryan Stitt
d962b749a2
use find_with_related, not find_also_related
...
find_also_related is 1:1, but we want 1:Many
2023-06-21 10:37:01 -07:00
Bryan Stitt
1cbb58e8e0
comment
2023-06-21 10:25:10 -07:00
Bryan Stitt
06ce95c386
let serde_json do more of the work
2023-06-21 10:18:36 -07:00
Bryan Stitt
5504062f47
dont error if no referrals
2023-06-21 10:18:06 -07:00
Bryan Stitt
8f1b6fe6c0
lint
2023-06-21 10:02:02 -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
78efad5453
cargo upgrade strum
2023-06-19 17:48:46 -07:00
Bryan Stitt
6d25c41faf
Compute units ( #136 )
...
* wip
* add basic compute unit calculator
* calculate costs with compute units
2023-06-19 17:47:38 -07:00
Bryan Stitt
b7935f77fc
spawn recording latency
2023-06-19 17:46:58 -07:00
Bryan Stitt
6038351cb8
change default tracking in prep for premium-only keys
2023-06-19 13:00:57 -07:00
Bryan Stitt
b35cd58a76
rate limit user_balance_post by bearer OR ip
2023-06-19 10:21:48 -07:00
Bryan Stitt
c3ae4ded2b
move data to the right places
2023-06-18 21:42:16 -07:00
Bryan Stitt
58cc129837
forgot to convert tier_sec_size from ms. 1 was a very large default
2023-06-18 17:57:21 -07:00
Bryan Stitt
ba410cf126
better log message
2023-06-18 16:41:01 -07:00
Bryan Stitt
89009dcd42
use web3_context for more errors
2023-06-18 16:40:17 -07:00
Bryan Stitt
af8543c3bf
some defaults are needed maybe?
2023-06-18 16:36:23 -07:00
Bryan Stitt
2f78e64c5d
create empty balance entry if none exists
2023-06-18 16:25:25 -07:00
Bryan Stitt
6deeabe1e1
pretty print errors
2023-06-18 16:14:06 -07:00
Bryan Stitt
9dd0bae40a
text instead of string payload
2023-06-18 16:13:55 -07:00
Bryan Stitt
825ba006f1
move floats and durations around for latency tracking
2023-06-18 10:46:22 -07:00
Bryan Stitt
2f0e6103ac
Revert "tier more important than backup"
...
This reverts commit bca22537c633822e5e6759fa2840712a837211fd.
2023-06-18 10:09:21 -07:00
Bryan Stitt
bca22537c6
tier more important than backup
...
we filter backups when they aren't needed, so this should be okay
2023-06-18 10:06:26 -07:00
Bryan Stitt
e54299beca
rolling median for choosing tier
2023-06-18 09:53:36 -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
3b9314a76f
comments
2023-06-17 08:44:18 -07:00