8000 [Upstream] [Staking] Improved Staking Flow by lyricidal · Pull Request #320 · PRCYCoin/PRCYCoin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Upstream] [Staking] Improved Staking Flow #320

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

Merged
merged 16 commits into from
Dec 28, 2022

Conversation

lyricidal
Copy link

The first of a number of staking improvements. This is based on: PIVX-Project/PIVX#582

There will be a number of follow ups, broken up for easier review/testing, leading up to PoSv2 / Time Protocol v2 and beyond.

This fixes an edge case where `fMintableCoins` evaluates to `false`
during initialization, which was causing an infinate loop in the staking
thread.
This reintroduces the calculation on wither or not the wallet should
"split" the PRCY stake input.

Currently remains disabled.
- Change the CheckProofOfStake() process to use unique_ptr.
If the wallet gets locked or a shutdown is requested in the middle of
the stakeinput loop, there is no sense in continuing.
Also move -backuppath to more appropriate area in the help output.
also fix segfault when permission denied since trying to create directories before checking permissions
@lyricidal lyricidal added enhancement New feature or request Upstream Upstream backports/fixes labels Dec 28, 2022
@lyricidal lyricidal merged commit 7867a31 into develop Dec 28, 2022
@lyricidal lyricidal deleted the upstream-staking_flow-pr582 branch December 28, 2022 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Upstream Upstream backports/fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0