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

Ensure correct validator order by using ValidatorInfo from chain rather than from user #425

Merged
merged 4 commits into from
Oct 13, 2023

Conversation

ameba23
Copy link
Contributor

@ameba23 ameba23 commented Oct 13, 2023

This addresses #419 by using validator info obtained from the chain, which will always be in the same order, rather than that given by the user.

It also has the advantage that the ip_address and x25519_public_key fields are guaranteed to be correct.
Because of this i had to remove the negative test where we check for a bad x25519 public key supplied by the user, as we now always get that information from the chain.

This actually means we no longer need UserTransactionRequest to contain ValidatorInfo. It could either be removed completely or replaced with a Vec of tss account ids which we check against the ones from the chain (as we are still doing in this PR). But i haven't done that here as it would be a breaking change.

@vercel
Copy link

vercel bot commented Oct 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
entropy-core ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 13, 2023 3:38pm

@JesseAbram
Copy link
Member

ya this looks great, I added a regression test, so maybe review that too and looks good to merge

@ameba23 ameba23 merged commit 753ebfa into master Oct 13, 2023
5 checks passed
@ameba23 ameba23 deleted the ensure-correct-validator-order branch October 13, 2023 15:48
ameba23 added a commit that referenced this pull request Oct 18, 2023
* master:
  Write a Dockerfile that can build both `entropy` and `server`. (#430)
  Workflow for automated GitHub Release drafting/publishing. (#429)
  Update `.editorconfig` to match `.rustfmt.toml` settings (#427)
  Place `demo_offence` dispatchable behind root origin check (#426)
  Ensure correct validator order by using ValidatorInfo from chain rather than from user (#425)
  changed remaining references of --ws-external to --rpc-external
  Update README.md
  proactive refresh (#413)
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.

2 participants