Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge latest lava #1

Merged
merged 69 commits into from
Dec 12, 2024
Merged

Merge latest lava #1

merged 69 commits into from
Dec 12, 2024

Conversation

DaBors
Copy link

@DaBors DaBors commented Dec 12, 2024

No description provided.

Yaroms and others added 30 commits October 20, 2024 12:40
change the spec name in the tests to create the case where the specs names are the same at the start

Co-authored-by: Yaroms <[email protected]>
* fix delegator rewards query so it'll show claimable rewards from past providers

* optimize query
* Changed logs

* Add the lava chain id to the probe

* Check the lava chain id in the "rpcprovider test"

* Check the lava chain id on provider startup

* CR Fix + Bug fix

* Fix the Ctrl + C not working bug

* CR Fix: Remove duplicated check
* load rate report in trailer

* fix trailer name

* fix lint

* fix load manager logic

* fix lint

* fix spelling

* fix logic

* fixed flag & header names

* fix load provider manager and creation logic

* fix logs for relay load rate

* fix rpcprovider server relay load handling

* fix tests

* fix typo

* fix init lava script

* fix provider load manager

* fix provider server and load manager

* fix lint - fix protocol test

* fix provider load manager applyProviderLoadMetadataToContextTrailer

* change cmdRPCProvider load rate flag to uint64

* try fix

* fix cmd flag reading

* adjusting uint64

* fix redundent nil check in provider load manager

* fix providerLoadManager per chain creation

* rename and fix instance passing unnecessarily

* fixed chainlib common formatting

* fix provider load manager comments

* fix e2e tests

* fix pr - unite add relay load and set trailer

* fix common.go provider load header

* fix edge case of getProviderLoad

* fix command flag description

* fix command flag description

* add metric for load rate

* fix division to be float and not uint

* roll back init lava only with node two consumers

* fix load metric

* merge main

* Update protocol/chainlib/common.go

Co-authored-by: Elad Gildnur <[email protected]>

* fix load calculation

* tidy code

* changing rate limit to 1k

* fix bug

* fix pr

* v4

* fix pr

* fix

---------

Co-authored-by: leon mandel <[email protected]>
Co-authored-by: Ran Mishael <[email protected]>
Co-authored-by: Leon Magma <[email protected]>
Co-authored-by: Elad Gildnur <[email protected]>
Co-authored-by: Omer <[email protected]>
* Fix small things in protocol e2e

* Add cache reconnect mechanism

* Add cache to protocol E2E

* Fix lint

* Add missing line

* Separate the cache from the relayer for auto reconnection

* Fix lint
* chain heights command, get latest chain heights from all providers of a chain

* moved chain-heights to lavap test

---------

Co-authored-by: Gil <[email protected]>
Co-authored-by: Ran Mishael <[email protected]>
* add AvailabilityStateUpdater  per chain to rpcprovider

* added provider availability updater

* fix lint

* added correct metrics

* remove redundent comment

* update latest epoch

* wip - adding unitests

* wip - availabilitty updater mock and tests

* fix frozen metric help description

* revert init lava

* fix pr - freeze metric creation logic and split jailed metric data

* fix lint

* fix make lint

* set updater key with chainid only

* fix public address setup for freeze updater

* add unitests for freeze updater epoch updates

* change query to provider instead of providers

* fix jailed status metric labels

* Update protocol/metrics/metrics_provider_manager.go

Co-authored-by: Elad Gildnur <[email protected]>

* Fix after merge

* Numerus changes

* Fix lint

---------

Co-authored-by: leon mandel <[email protected]>
Co-authored-by: Ran Mishael <[email protected]>
Co-authored-by: Elad Gildnur <[email protected]>
Co-authored-by: Elad Gildnur <[email protected]>
Co-authored-by: Ran Mishael <[email protected]>
Co-authored-by: omerlavanet <[email protected]>
…1726)

* feat: PRT Block Hash Retry Archive

* fix deref

* fix lint

* remove extensions from all flows and save RouterKey in singleConsumerSession

* version merge

* rename function for better description on functionality

* give a bigger window for the test

---------

Co-authored-by: omerlavanet <[email protected]>
Co-authored-by: Yaroms <[email protected]>
* fix: PRT - provider node error handing fixed

* fix: attempt recovering json message from error body

* add logs
* Exported the check of ws:// to a funciton

* Add support for StarkNet Pathfinder in the rpcclient

* Small script fix

* Improve the router key usage

* Fix to RouterKey to init with empty extension

* Fix internal paths issues

* Warn provider when the configured internal paths are different than onchain

* Small fix to the router key

* Update the starknet spec with new internal paths changes

* Fix lint

* Add test for new difference function

* Add more info to NodeUrl String func

* Prefer non internal path when choosing websocket as http node url

* Add TestChainRouterWithInternalPaths

* Add TestGetVerifications

* Small fix to the router key

* Add tests for the router key

* Add TestCraftChainMessage

* Post merge fix

* CR Fix: Reuse router key string

* Remove unused code

* Small test fix

* Add an example for starknet with internal paths

* CR Fix: Reduce conn map to one conn

* CR Fix: Move into if..else

* CR Fix: Remove unnecessary field

* CR Fix: Small bug fix

* CR Fix: Break if true

* dynamic internal path population

* Add ContainsPredicate to lavaslices

* Fixes to the router key

* Remove the warning of non configured internal paths

* Fix the chain router and its tests

---------

Co-authored-by: Omer <[email protected]>
Co-authored-by: Ran Mishael <[email protected]>
* feat: Update Axelar spec

* Remove unsupported APIs

---------

Co-authored-by: Omer <[email protected]>
Co-authored-by: Yaroms <[email protected]>
* now use the "provider" query instead of iterating over all chains

* lint fix

---------

Co-authored-by: Yarom Swisa <[email protected] git config --global user.name Yarom>
oren-lava and others added 3 commits December 8, 2024 10:41
* remove spec requirement to contain all apis

* fix unitests

* fix consumer race

* fix unitests

* fix unitests

* Small fix to tests

---------

Co-authored-by: Elad Gildnur <[email protected]>
Copy link

Hey there and thank you for opening this pull request! 👋🏼

We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted.

Details:

No release type found in pull request title "Merge latest lava". Add a prefix to indicate what kind of release this pull request corresponds to. For reference, see https://www.conventionalcommits.org/

Available types:
 - feat: A new feature
 - fix: A bug fix
 - docs: Documentation only changes
 - style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
 - refactor: A code change that neither fixes a bug nor adds a feature
 - perf: A code change that improves performance
 - test: Adding missing tests or correcting existing tests
 - build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
 - ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
 - chore: Other changes that don't modify src or test files
 - revert: Reverts a previous commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment