Commit Graph

371 Commits

Author SHA1 Message Date
Bryan Stitt
c1ef3a57f7 1.43.46 2023-10-13 00:23:50 -07:00
Bryan Stitt
433bf02c3c 1.43.45 2023-10-12 23:34:06 -07:00
Bryan Stitt
59e5beeac8 1.43.44 2023-10-12 21:49:55 -07:00
Bryan Stitt
d4e72a5455 1.43.43 2023-10-12 20:19:24 -07:00
Bryan Stitt
926003edd9 1.43.42 2023-10-12 16:32:19 -07:00
Bryan Stitt
75da1b8070 make tokio-console and the normal logging work together 2023-10-12 14:14:02 -07:00
Bryan Stitt
235f514997 1.43.41 2023-10-11 20:58:42 -07:00
Bryan Stitt
12b3069030 1.43.40 2023-10-11 12:45:00 -07:00
Bryan Stitt
a259b2b955 1.43.39 2023-10-11 10:57:41 -07:00
Bryan Stitt
28687f153f 1.43.38 2023-10-11 04:21:25 -07:00
Bryan Stitt
2c175103ae remove more unused deps 2023-10-11 01:46:59 -07:00
Bryan Stitt
4b0756711f 1.43.37 2023-10-11 01:44:11 -07:00
Bryan Stitt
15216b7d33 no waiting and simpler rpc looping 2023-10-11 01:23:08 -07:00
Bryan Stitt
20413b883f remove unused deps 2023-10-11 00:57:46 -07:00
Bryan Stitt
bb3c3482f1 1.43.35 2023-10-11 00:12:55 -07:00
Bryan Stitt
0f92f457b0 1.43.34 2023-10-10 23:33:34 -07:00
Bryan Stitt
a9d5006ced get rid of async recursion 2023-10-10 23:32:50 -07:00
Bryan Stitt
b35a211217 1.43.33 2023-10-10 23:09:16 -07:00
Bryan Stitt
27ba7adea2 rustls is faster 2023-10-10 23:04:42 -07:00
Bryan Stitt
f8b2571c65 1.43.32 2023-10-10 20:55:28 -07:00
Bryan Stitt
bf49b84eae skip outers earlier 2023-10-10 20:02:20 -07:00
Bryan Stitt
8b8dfbbda7 1.43.30 2023-10-10 19:25:12 -07:00
Bryan Stitt
55dc4f7323 1.43.29 2023-10-10 18:42:01 -07:00
Bryan Stitt
9efd36ceeb 1.43.28 2023-10-10 17:15:29 -07:00
Bryan Stitt
0e2ed425c1 1.43.27 2023-10-10 16:06:54 -07:00
Bryan Stitt
45a6526d9a 1.43.26 2023-10-10 15:53:52 -07:00
Bryan Stitt
1b144d0aeb 1.43.25 2023-10-10 14:21:54 -07:00
Bryan Stitt
faf48e8d50 1.43.24 2023-10-09 23:31:48 -07:00
Bryan Stitt
78edfee6b9 timeout and server selection fixes
add a short connect timeout separate from the overall request timeout.

also fix a bug when only 1 server was in the rpc list causing a very tight loop that made tokio sad
2023-10-09 23:30:17 -07:00
Bryan Stitt
4f6e75e109 cargo upgrade and update 2023-10-09 09:46:43 -07:00
Bryan Stitt
d1d5e8ecf5 1.43.22 2023-10-07 16:54:02 -07:00
Bryan Stitt
5fe5b97aef 1.43.21 2023-10-07 15:21:32 -07:00
Bryan Stitt
2d6daf4def 1.43.20 2023-10-07 13:51:43 -07:00
Bryan Stitt
9ed0c70ecd wait for lagged rpcs. v1.43.19 2023-10-07 11:58:47 -07:00
Bryan Stitt
bb9c8f297e 1.43.16 2023-10-07 03:41:45 -07:00
Bryan Stitt
d38a35903e cargo update 2023-10-07 00:35:22 -07:00
Bryan Stitt
aeb30787dd more openssl and no rmp
i like rustls, but we can't use it on everything and so our compile times are bad
2023-10-07 00:35:22 -07:00
Bryan Stitt
9258d36e6a refactor rpc selection 2023-10-07 00:35:22 -07:00
Bryan Stitt
aee8ede8ef 1.43.15 2023-10-06 00:05:27 -07:00
Bryan Stitt
572fc87cf5 1.43.14 2023-10-05 20:28:51 -07:00
Bryan Stitt
84bff33257 cargo upgrade 2023-10-05 11:01:24 -07:00
Bryan Stitt
ac8d77252e 1.43.13 2023-10-05 11:01:24 -07:00
Bryan Stitt
5aa967dfa9 1.43.12 2023-10-03 21:35:43 -07:00
Bryan Stitt
633177c0a6 bump version to 1.43.11 2023-10-03 19:29:44 -07:00
Bryan Stitt
73d16b83e6 cargo upgrade and update 2023-10-03 19:07:21 -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
f0b6465069
streaming responses 2 (#219)
* streaming responses compile, still small TODOs & cleanup

* refactor to allow short curcuits on uncacheable requests (#220)

* refactor to allow short curcuits on uncacheable requests

* handle error inside an Arc from moka

* arc instead of box

* lint

* more lint

* add bonus rate limits and keep all semaphores after rate limits (#221)

* add bonus rate limits and keep all semaphores after rate limits

* remove stale todos

* better function names

* cargo upgrade and update

* make some panics warn. more todo

* pass request_metadata through so streaming responses include their final size

* remove stale TODO

* remove more stale todos

* add file i missed

* make to_json_string work well enough

* check config for free_subscriptions

---------

Co-authored-by: Rory Neithinger <rory@llamanodes.com>
2023-09-26 18:18:06 -07:00
Bryan Stitt
e1f922dc57 v1.43.8 2023-09-25 10:39:31 -07:00
Bryan Stitt
d732b8a171 cargo upgrade and update
ordered-float went from v3 to v4
2023-09-25 10:02:04 -07:00
Bryan Stitt
f9b6c2fe0c cargo upgrade and update 2023-09-21 09:35:06 -07:00
Bryan Stitt
0b3dfd095e upgrade nightly for doc fix 2023-09-20 11:02:41 -07:00
Bryan Stitt
b44c774edb remove some unused features 2023-09-19 18:48:15 -07:00
Bryan Stitt
416d179c09 1.43.6 2023-09-19 14:43:15 -07:00
Bryan Stitt
10c4ffc9d2 smarter archive retry 2023-09-19 10:56:54 -07:00
Bryan Stitt
9ec408765c v1.43.2 2023-09-18 23:43:45 -07:00
Bryan Stitt
37df2a5650 delete unused deps 2023-09-18 14:32:02 -07:00
Bryan Stitt
a68a98ce41 cargo upgrade and update
moka 0.12 required some migration help: https://github.com/moka-rs/moka/blob/main/MIGRATION-GUIDE.md
2023-09-18 11:04:22 -07:00
Bryan Stitt
01179d14f2 cargo upgrade and update 2023-09-14 12:51:16 -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
274b2c89fc v1.43.1 2023-09-12 13:43:17 -07:00
Bryan Stitt
8050f699f3 cargo upgrade and cargo update 2023-09-11 11:33:36 -07:00
Bryan Stitt
0dcd368ac7 v1.42.18 2023-09-06 13:17:35 -07:00
Bryan Stitt
d5090df5a4 1.42.17 2023-09-02 10:59:37 -07:00
Bryan Stitt
bd77a6cac4 cargo upgrade and update 2023-09-02 10:20:30 -07:00
Bryan Stitt
57f5d5b483 cargo upgrade and update 2023-09-01 16:58:02 -07:00
Bryan Stitt
7530605e5b v1.42.14 2023-08-30 21:06:09 -07:00
Bryan Stitt
484610b80f cargo upgrade and update 2023-08-30 21:05:34 -07:00
Bryan Stitt
ec533c8b30 cargo upgrade and update 2023-08-30 20:59:06 -07:00
Bryan Stitt
df12b3dc73 cargo upgrade and update 2023-08-24 14:37:04 -07:00
Bryan Stitt
a32e2ddcad cargo upgrade 2023-08-22 13:27:19 -07:00
Bryan Stitt
d036806a61 cargo upgrade and cargo update 2023-08-22 10:42:59 -07:00
Bryan Stitt
eed03d2bfe cargo upgrade 2023-08-18 16:18:30 -07:00
Bryan Stitt
24058e04f1 bump version to 1.42.10 2023-08-18 16:01:32 -07:00
Bryan Stitt
6be05bab4b cargo upgrade 2023-08-17 13:49:45 -07:00
Bryan Stitt
e0f700189b fix error code on method not implemented and error_response user_response bools 2023-08-17 13:44:26 -07:00
Bryan Stitt
5b9ef30e64 include user_error_response in aggregate stats 2023-08-15 17:08:11 -07:00
Bryan Stitt
54341c4654 learn to cache more 2023-08-15 16:37:53 -07:00
Bryan Stitt
9bd18250fe bump 1.42.6 2023-08-15 16:21:13 -07:00
Bryan Stitt
aa71a406bb cargo upgrade 2023-08-15 15:39:13 -07:00
Bryan Stitt
891243ed46 cargo upgrade 2023-08-08 17:40:17 -07:00
Bryan Stitt
cee4603b55 add check_balance command 2023-08-08 16:18:07 -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
5f07213c8d new nightly supposedly compiles faster 2023-08-08 14:14:34 -07:00
Bryan Stitt
d56d39c82f cargo upgrade 2023-08-07 15:40:59 -07:00
Bryan Stitt
5257329559 cargo upgrade 2023-08-04 16:19:43 -07:00
Bryan Stitt
ab6d3a1d9b split command line into separte module 2023-08-03 00:16:54 -07:00
Bryan Stitt
7cd91af3a8 don't cache nulls 2023-07-31 14:26:07 -07:00
Bryan Stitt
2885bc6ef2 cargo upgrade 2023-07-31 12:58:20 -07:00
Bryan Stitt
ebfb4c6386 cargo upgrade 2023-07-27 12:29:10 -07:00
Bryan Stitt
d2f0d45dd2 reduce out of funds tier to match free config and bump to version 1 2023-07-26 16:40:08 -07:00
Bryan Stitt
4d8836538d drop old fk 2023-07-26 09:33:15 -07:00
Bryan Stitt
9b361cb849 cargo upgrade 2023-07-24 21:59:37 -07:00
Bryan Stitt
d4518cd2bf spans on the stat add function 2023-07-21 14:27:43 -07:00
Bryan Stitt
0b1cfeffed use normalize path layer to trim trailing slash 2023-07-20 20:05:37 -07:00
Bryan Stitt
766e1939d5 cargo upgrade 2023-07-20 18:23:04 -07:00
Bryan Stitt
6c6a2406b7 cargo upgrade 2023-07-19 22:55:53 -07:00
Bryan Stitt
90ffb5254a flush all stats 2023-07-19 18:41:40 -07:00
Bryan Stitt
1b8ae5dee0 cargo upgrade 2023-07-18 09:54:56 -07:00
David
31f840432d
Add DateCreated fields to admin and on-chain deposit (#190)
* tests seem to be passing

* bump version

* bump version
2023-07-13 19:25:14 -07:00
Bryan Stitt
df2f3d340f
More balance tests (#182)
* fix popularity contest

* more info in the Debug for Web3Rpc

* add frontend_requests and cache_misses to the Balance query

* add more to balance and stats flushing and improved test coverage

* it compiles

* deserializer for Ulid to Uuid

I think a wrapper type on Ulid that implements sea_orm::Value is probably better

* rename variable to match struct name

* add deserializer for Address -> Vec<u8>

* sql sum returns a Decimal. need to convert to u64

* assert more

* one log and assert more

* log more

* use a helper to get the user's rpc provider

* this should be 2 now that we have a public and authed call

* this should be zero. the public has the cache miss

* instrument cu calcs

* trace the value we took, not the default that replaced it

* move usd_per_chain into config

* remove some extra logging

* use Arc::into_inner to maybe avoid a race

* off by 1

* pass paid credits used instead of returning it

this lets us use it to write to our user balance cache first. importantly, this keeps us from holding a write lock while writing to mysql

* no cache misses expected in this test

* actually check the admin

* put the balance checks back now that the rest of the test works

* archive request is being set incorrectly

* wow howd we manage flipping the greater than sign on archive depth

* move latest_balance and premium_credits_used to before any stats are emitted

* lint

* and build undoes the linting. fun

i didnt even want to lint them in the first place, so this is fine

* missed incrementing total_spent when not incrementing total_spent_paid_credits

* use the credits on self

* use the credits on self (pt 2)

* fix type for 10 cu query

* convert the requestmetadata on the other side of the channel

* logs

* viewing stats is allowed even without a balance

* move paid_credits_used to AuthorizationChecks

* wip

* test_sum_credits_used finally passes

* UserBalanceCache::get_or_insert

* re-enable rpc_secret_key_cache

* move invalidate to a helper function

and always call it **after** the db is commited

* fix PartialEq and Eq on RpcSecretKey

* cargo upgrade
2023-07-12 00:35:07 -07:00