a704e4710d
chore: delete STM annotations ( #12752 )
...
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
2024-12-05 16:45:07 +11:00
a7b1db5f04
fix: address issues raised from code review
2024-08-09 11:03:28 +10:00
c4b699a051
feat!: make max-filters configurable, count combined subs+filters
...
* CLI takes --eth-max-filters-per-conn
* gateway.NewNode() now takes the API plus an optional list of Options
2024-08-09 11:03:28 +10:00
c90cbbd35b
fix!: gateway: fix rate limiting, general cleanup
...
Minor API changes:
* gateway.NewRateLimiterHandler and gateway.NewConnectionRateLimiterHandler have
been replaced with gateway.NewRateLimitHandler.
* The handlers returned by both gateway.NewRateLimitHandler and the primary
gateway.Handler return an http.Handler augmented with a Shutdown(ctx) method
to be used for graceful cleanup of resources.
Fix:
* --per-conn-rate-limit was previously applied as a global rate limiter,
effectively making it have the same impact as --rate-limit. This change fixes
the behaviour such that --per-conn-rate-limit is applied as a API call
limiter within a single connection (i.e. a WebSocket connection). The rate
is specified as tokens-per-second, where tokens are relative to the expense
of the API call being made.
2024-08-09 11:03:28 +10:00
1bc8a8b32c
chore: remove (deprecated) deps on build/ proxy-constants
...
This is a large diff, yet should have exactly zero functional changes
Ideally as a result of this some parts of the depchain will become lighter,
with downstream reaping the same benefits as the team that initiated this split.
P.S. work was done while forming better intuition of current dependency graph
2024-07-22 17:36:12 +04:00
1286d76988
gateway: eth_subscribe support
2023-01-31 10:28:12 +01:00
08b22edd89
fix make gen
2022-08-29 16:25:30 +02:00
ae42ed0bb1
Merge remote-tracking branch 'origin/master' into rate-limit-gateway
2022-06-10 13:01:20 +02:00
8cca9b1970
Use new go-state-types accessors
2022-05-17 15:21:27 -04:00
e679083714
spelling error
2022-05-02 08:30:56 -07:00
5ec084a653
add test for the limit func
2022-04-28 00:45:34 -07:00
c2b7ffbae5
fix test
2022-04-20 20:33:37 -07:00
79453663b3
feat: Add additional test annotations ( #8272 )
...
* Annotate api,proxy_util,blockstore_badger, policy tests
* Annotate splitstore: bsbadger / markset
* Annotate splitstore feature
* Annotate union/timed blockstore tests
* Annotate openrpc, diff_adt tests
* Annotate error,drand,events tests
* Annotate predicates_test
* Fix annotations
* Annotate tscache, gen tests
* Annotate fundmanager test
* Annotate repub and selection tests
* Annotate statetree_test
* Annotate forks_test
* Annotate searchwait_test.go
* Fix duplicated @@ symbols
* Annotate chain stmgr/store tests
* Annotate more (types) tests
* More tests annotated
* Annotate conformance chaos actor tests
* Annotate more integration tests
* Annotate journal system tests
* Annotate more tests.
* Annotate gas,head buffer behaviors
* Fix markset annotations
* doc: test annotations for the markets dagstore wrapper
* Annotate miner_api test in dagstore
* Annotate more test files
* Remove bad annotations from fsrepo
* Annotate wdpost system
* Remove bad annotations
* Renamce "conformance" to "chaos_actor" tests
* doc: stm annotations for blockheader & election proof tests
* Annotate remaining "A" tests
* annotate: stm for error_test
* memrepo_test.go
* Annotate "b" file tests
* message_test.go
* doc: stm annotate for fsrepo_test
* Annotate "c" file tests
* Annotate "D" test files
* message_test.go
* doc: stm annotate for chain, node/config & client
* docs: stm annotate node_test
* Annotate u,v,wl tests
* doc: stm annotations for various test files
* Annotate "T" test files
* doc: stm annotate for proxy_util_test & policy_test
* doc: stm annotate for various tests
* doc: final few stm annotations
* Add mempool unit tests
* Add two more memPool Add tests
* Update submodules
* Add check function tests
* Add stm annotations, refactor test helper
* Annotate api,proxy_util,blockstore_badger, policy tests
* Annotate splitstore: bsbadger / markset
solving merge conflicts
* Annotate splitstore feature
* Annotate union/timed blockstore tests
* Annotate openrpc, diff_adt tests
* Annotate error,drand,events tests
* Annotate predicates_test
* Fix annotations
* Annotate tscache, gen tests
* Annotate fundmanager test
* Annotate statetree_test
* Annotate forks_test
* Annotate searchwait_test.go
* Fix duplicated @@ symbols
* Annotate chain stmgr/store tests
* Annotate more (types) tests
* More tests annotated
* Annotate conformance chaos actor tests
* Annotate more integration tests
* Annotate journal system tests
* Annotate more tests.
* Annotate gas,head buffer behaviors
solve merge conflict
* Fix markset annotations
* Annotate miner_api test in dagstore
* Annotate more test files
* doc: test annotations for the markets dagstore wrapper
* Annotate wdpost system
* Renamce "conformance" to "chaos_actor" tests
* Annotate remaining "A" tests
* doc: stm annotations for blockheader & election proof tests
* annotate: stm for error_test
* Annotate "b" file tests
* memrepo_test.go
* Annotate "c" file tests
* message_test.go
* Annotate "D" test files
* doc: stm annotate for fsrepo_test
* Annotate u,v,wl tests
* message_test.go
* doc: stm annotate for chain, node/config & client
* docs: stm annotate node_test
* Annotate "T" test files
* doc: stm annotations for various test files
* Add mempool unit tests
solve merge conflict
* doc: stm annotate for proxy_util_test & policy_test
* doc: stm annotate for various tests
* doc: final few stm annotations
* Add two more memPool Add tests
* Update submodules
* Add check function tests
solve conflict
* Add stm annotations, refactor test helper
solve merge conflict
* Change CLI test kinds to "unit"
* Fix double merged test
* Fix ccupgrade_test merge
* Fix lint issues
* Add stm annotation to types_Test
* Test vectors submodule
* Add file annotation to burn_test
Co-authored-by: Nikola Divic <divicnikola@gmail.com>
Co-authored-by: TheMenko <themenkoprojects@gmail.com>
2022-03-16 18:37:34 +01:00
c1303f1eac
gateway: Add support for Version method
2021-06-28 19:05:27 +02:00
ac4f3ab684
remove duplicated vars.
2021-05-19 18:17:38 +01:00
88c6642330
restructure gateway.
...
Move the gateway implementation to the `gateway` top-level
package. cmd/lotus-gateway now contains only the entrypoint.
This separation is important for the testing refactors.
2021-05-19 12:45:55 +01:00