-
Notifications
You must be signed in to change notification settings - Fork 15
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
Conversation
4b69572
to
ef0ad5a
Compare
386678b
to
aab935e
Compare
parameters.z, | ||
); | ||
|
||
if bank |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
runtime/Cargo.toml
Outdated
@@ -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"] } |
There was a problem hiding this comment.
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.
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