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

New CurrencyToPower and PowerToVotes #261

Merged
merged 11 commits into from
Feb 14, 2020
Merged

New CurrencyToPower and PowerToVotes #261

merged 11 commits into from
Feb 14, 2020

Conversation

AurevoirXavier
Copy link
Member

@AurevoirXavier AurevoirXavier commented Feb 12, 2020

fix: #238, #262

@AurevoirXavier AurevoirXavier changed the title Fix #238 Fix #238, #262 Feb 13, 2020
@AurevoirXavier AurevoirXavier changed the title Fix #238, #262 New CurrencyToPower and PowerToVotes Feb 13, 2020
@AurevoirXavier AurevoirXavier changed the title New CurrencyToPower and PowerToVotes New CurrencyToPower and PowerToVotes Feb 13, 2020
@AurevoirXavier AurevoirXavier linked an issue Feb 13, 2020 that may be closed by this pull request
@hackfisher hackfisher merged commit ac93bd2 into darwinia-network:develop Feb 14, 2020
@@ -258,7 +242,7 @@ where
for n in &mut voters {
for e in &mut n.edges {
if e.who == winner.who {
e.load = winner.score.lazy_saturating_sub(n.load);
e.load = winner.score.lazy_sub(n.load);
Copy link
Member Author

Choose a reason for hiding this comment

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

lazy_sub may underflow, will change to lazy_saturating_sub in next PR.

boundless-forest pushed a commit that referenced this pull request Aug 1, 2023
* Parse and bounds-check entire Modexp length inputs

* Test large modexp computation and fix related typo

* Bounds checks and unit tests for Ed25519Verify precompile

* s/<spaces>/<tabs>/
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.

Change Power to u32 CurrencyToVote to PowerToVote
2 participants