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

feat: add publisher caps to the validator #302

Merged
merged 49 commits into from
Jul 31, 2024
Merged

Conversation

guibescos
Copy link

@guibescos guibescos commented Jul 17, 2024

Computes the PublisherStakeCapsMessage no matter what, and adds it to the accumulator Merkle tree if the feature flag is turned on. The idea is that if there are any bugs they should be caught when each individual validator upgrades and not when the flag is turned on.

The computation is performed by pyth-network/pyth-client#412

@guibescos guibescos force-pushed the feat/publisher-caps branch from 4b69572 to ef0ad5a Compare July 17, 2024 16:15
@guibescos guibescos force-pushed the feat/publisher-caps branch from 386678b to aab935e Compare July 18, 2024 14:35
Base automatically changed from accumulator-v2 to pyth-v1.14.17 July 24, 2024 17:59
parameters.z,
);

if bank

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small detail: Checking this at the beginning and exiting early if the feature set is deactivated would avoid some unnecessary computations if it is deactivated.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be useful so that we detect errors in the logic before the feature activation or before a majority of nodes have updated.

@@ -35,8 +35,8 @@ num-traits = { version = "0.2" }
num_cpus = "1.13.1"
once_cell = "1.12.0"
ouroboros = "0.15.0"
pyth-oracle = { git = "https://github.com/pyth-network/pyth-client", tag = "oracle-v2.32.1", features = ["library"] }
pythnet-sdk = { git = "https://github.com/pyth-network/pyth-crosschain", version = "1.13.6", rev = "e670f57f89b05398ca352e4accb1e32724a8e1b4" }
pyth-oracle = { git = "https://github.com/pyth-network/pyth-client.git" ,branch="feat/publisher-caps" , features = ["library"] }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's change it once it's merged.

@guibescos guibescos merged commit 4b32928 into pyth-v1.14.17 Jul 31, 2024
@guibescos guibescos deleted the feat/publisher-caps branch July 31, 2024 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants