-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: CNS-999 - Pairing cache (#1576)
* CNS-994: use utils to encode/decode epoch * CNS-994: stake storage refactor not final * CNS-994: fix some of the unit tests * CNS-994: finish refactor * CNS-994: fix serialization to be big endian (avoid common 0 prefix of little endian) * CNS-994: fix unit test * CNS-994: fix e2e * CNS-998: install collections * CNS-998: rename collections.go to collcompat (for standard) * CNS-998: make stake entries use collections * CNS-994: migrator * CNS-994: fix migrator * CNS-994: updated readme * CNS-994: the pairing mechanism assumes that the retrived entries are with decending order of stake * CNS-998: iterate over providers in reverse * CNS-994: fix unit test * CNS-998: fix unit test * CNS-999: pairing cache implementation * CNS-999: small change * CNS-999: remove test code * CNS-999: rename * CNS-999: relay pairing cache implementaion + unit tests * CNS-994: revert Serialize to little endian and created SerializeBigEndian * CNS-994: remove outdated migrators * CNS-994: complete migrator removal * CNS-994: delete outdated test file * CNS-994: sort stake storage in GetAllStakeEntriesForGenesis * CNS-994: reverted removal of stakeEntries map in unresponsive provider code * CNS-994: test scripts 100 providers * CNS-994: migrator fix order stake entries for pairing * CNS-994: another migrator fix * refactor: CNS-998 - use collections instead of KV stores (#1570) * CNS-998: install collections * CNS-998: rename collections.go to collcompat (for standard) * CNS-998: make stake entries use collections * CNS-998: iterate over providers in reverse * CNS-998: fix unit test * CNS-998: make stakeEntries hold extra unique index of epoch, chainid and address * CNS-998: add chain id and vault indices for stake entries current * CNS-998: small changes * CNS-998: added comment * CNS-998: other part of merge * CNS-998: make epoch hashes a collections map * CNS-998: add error handling for epoch hash remove * CNS-998: migrator fix * Update scripts/test/inich_100_providers.sh Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * CNS-994: fix lint and small issues * CNS-994: fix lint * CNS-999: fix unit tests * Update scripts/test/inich_100_providers.sh Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update x/epochstorage/keeper/stake_entries.go Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * CNS-994: enhance error messages in stake entries methods * CNS-999: rabbitAi changes * CNS-999: lint * CNS-999: fix protocgen * CNS-999: fix lint * CNS-999: lint fix * CNS-999: make relay pairing cache use a KV store * CNS-999: lint fix * CNS-999: change relay cache key and save allowed_cu in cache * Update x/pairing/keeper/pairing.go * Update x/pairing/keeper/pairing_cache.go * Update pairing_cache.go * CNS-999: added unit test * CNS-999: lint fixes * CNS-999: more lint fixes * CNS-999: lint fixes * CNS-999: lint * CNS-999: lint --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Omer <[email protected]>
- Loading branch information
1 parent
7a1efd8
commit afa45b7
Showing
31 changed files
with
633 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
|
||
__dir=$(dirname "$0") | ||
. $__dir/useful_commands.sh | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.