Skip to content

Sort available coins for staking by coin age descending - #578

Merged
mxaddict merged 3 commits into
navcoin:masterfrom
dantudor:Coin-sort
Oct 9, 2019
Merged

mxaddict merged 3 commits into
navcoin:masterfrom
dantudor:Coin-sort

Conversation

@dantudor

Copy link
Copy Markdown
Contributor

This is the implementation for sorting the available coins for staking by coin age decending.

@dantudor dantudor changed the title Coin sort Sort available coins for staking by coin age descending Jul 31, 2019
Comment thread src/wallet/wallet.cpp Outdated
}
}

std::sort(vCoins.begin(), vCoins.end(), sortByCoinAgeDescending());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would add here if (GetBoolArg("-stakingsortbycoinage",false))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I agree with this flag check

@dantudor can you add this flag check, then I'll approve PR

@mxaddict

mxaddict commented Aug 5, 2019

Copy link
Copy Markdown
Contributor

testedACK, waiting for requested change to approve

@mxaddict

Copy link
Copy Markdown
Contributor

I added the flag check that @aguycalled suggested stakingsortbycoinage

@mxaddict
mxaddict self-requested a review September 26, 2019 17:00

@mxaddict mxaddict left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

testedACK (Ubuntu 19.10)

@mxaddict

Copy link
Copy Markdown
Contributor

Will merge after Travis builds are done

@mxaddict

mxaddict commented Oct 9, 2019

Copy link
Copy Markdown
Contributor

This change looks ok to merge

@mxaddict
mxaddict merged commit da5377e into navcoin:master Oct 9, 2019
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.

3 participants