Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Conversation

hzy1919
Copy link
Contributor

@hzy1919 hzy1919 commented Aug 19, 2022

Fixes #12042

polkadot address: 15wPGN5vysDW1HYWfZRjQQhv2ktpfLMMuiJNMRKcodwPfM14

Copy link
Contributor

@kianenigma kianenigma left a comment

Choose a reason for hiding this comment

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

Looks mostly good.

@kianenigma kianenigma added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Aug 21, 2022
@kianenigma
Copy link
Contributor

update?

@hzy1919
Copy link
Contributor Author

hzy1919 commented Aug 29, 2022

update?

Yeah, I'm adding the tests. 😄

Pls review .

2.Add one test that does ElectionCompute::Signed and one that does ElectionCompute::Unsigned to check 'Event::SolutionStored' and 'Event::ElectionFinalized'
Copy link
Contributor

@kianenigma kianenigma left a comment

Choose a reason for hiding this comment

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

election_compute: Some(ready_solution.compute),
score: Some(ready_solution.score),
});
<QueuedSolution<T>>::take()
Copy link
Contributor

Choose a reason for hiding this comment

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

I hope you agree that this looks better.

Copy link
Contributor

@ruseinov ruseinov left a comment

Choose a reason for hiding this comment

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

looks good

@kianenigma
Copy link
Contributor

kianenigma commented Sep 1, 2022

@hzy1919 can you add your polkadot address for a tip? https://github.com/paritytech/substrate-tip-bot/

@kianenigma
Copy link
Contributor

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 5b0f999 into paritytech:master Sep 1, 2022
@hzy1919
Copy link
Contributor Author

hzy1919 commented Sep 1, 2022

@hzy1919 can you add your polkadot address for a tip? https://github.com/paritytech/substrate-tip-bot/

@kianenigma yeah, I have added my polkadot address. Thanks for all your help !

@hzy1919
Copy link
Contributor Author

hzy1919 commented Oct 26, 2022

Hi @kianenigma , I found the tip-bot hasn't been executed yet when I collected informations for member request of polkadot-fellows-seeding.
It may have been forgotten . :D

ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
…h#12069)

* Name the score of the election in ElectionFinalized event

* fmt

* 1.Adjust the logic of the function 'do_elect()'.
2.Add one test that does ElectionCompute::Signed and one that does ElectionCompute::Unsigned to check 'Event::SolutionStored' and 'Event::ElectionFinalized'

* Fix from kian

* fmt and update comment.

Co-authored-by: kianenigma <kian@parity.io>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
Status: Done
Archived in project
Development

Successfully merging this pull request may close these issues.

Name the score of the election in ElectionFinalized event
3 participants