-
Notifications
You must be signed in to change notification settings - Fork 13
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
multi-sig for d-param #549
base: master
Are you sure you want to change the base?
multi-sig for d-param #549
Conversation
5fc32fb
to
1c69d26
Compare
1c69d26
to
38dfd26
Compare
38dfd26
to
a0c6381
Compare
@@ -4,6 +4,8 @@ | |||
//! The datum encodes D-parameter using VersionedGenericDatum envelope with the D-parameter being | |||
//! `datum` field being `[num_permissioned_candidates, num_registered_candidates]`. | |||
|
|||
use std::any::Any; | |||
|
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.
cosmetic: please keep in one block, no new lines
Ok(TxHash(tx_id)) | ||
} else { | ||
let authorities = gov_data.policy.key_hashes(); | ||
if authorities.contains(&ctx.payment_key_hash().to_bytes().try_into().unwrap()) { |
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.
I would say it doesn't matter if ctx.payment_key_hash
is an authority or not. Since it pays for the TX, it needs to sign it. I propose simplifying it by dropping this check and else case and dropping the key_hashes()
combinator.
Description
link
Checklist
changelog.md
for affected crate