Skip to content
This repository was archived by the owner on Feb 9, 2025. It is now read-only.

Conversation

@tonyboylehub
Copy link

No description provided.

@crypt0miester crypt0miester self-assigned this Aug 12, 2024
@crypt0miester
Copy link
Contributor

gm team,

apart from the reviewed comments, please do the following:

  • Add programs/core-voter to the root Cargo.toml
  • Add refreshing the blockhash periodically, because I've been getting RpcError(DeadlineExceeded) and some times IoError(Custom { kind: Other, error: "the request exceeded its deadline" }). for reference: link
  • update_voter_weight_record.rs tests are failing. Please revisit.
  • please run cargo clippy -- -A clippy::pedantic --deny=warnings and cargo fmt -- --check
  • rename the file programs/core-voter/src/instructions/udpate_max_voter_weight_record.rs please

regards,
miester

.unwrap();

// The weight never expires and only changes when collections are configured
max_voter_weight_record.max_voter_weight_expiry = None;
Copy link
Contributor

Choose a reason for hiding this comment

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

Since, update_max_voter_weight_record will take care of the max voter weight,configure_collection should reset the fields on MaxVoterWeightRecord:

    max_voter_weight_record.max_voter_weight = 0;
    max_voter_weight_record.max_voter_weight_expiry = Some(0);

Setting it to None will bypass the slot check if update_max_voter_weight_record is not called.

@tonyboylehub
Copy link
Author

Just picking back up on this, apologise we were away.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants