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

[Wallet] Reduce shutdown delays when mining #893

Merged
merged 1 commit into from
Jan 20, 2021

Conversation

CaveSpectre11
Copy link
Collaborator

Problem

The wallet sometimes still takes a while before it actually shuts down when mining; this is most prevalent when the mining has been shutdown before the wallet is shut down.

Root cause

The wallet will have to abort the mining generation loops when shutdown is active

Solution

Add checks in the mining loops to abort when necessary

@CaveSpectre11 CaveSpectre11 added Component: Core App Related to the application itself. Component: Miner Both PoW and PoS block creation Algo: ProgPow Algo: RandomX Algo: Sha256d labels Jan 20, 2021
@CaveSpectre11 CaveSpectre11 self-assigned this Jan 20, 2021
Copy link
Collaborator

@codeofalltrades codeofalltrades left a comment

Choose a reason for hiding this comment

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

ACK f71b152

@codeofalltrades codeofalltrades merged commit fc2233e into Veil-Project:master Jan 20, 2021
@CaveSpectre11 CaveSpectre11 deleted the shutdowns branch September 5, 2021 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Algo: ProgPow Algo: RandomX Algo: Sha256d Component: Core App Related to the application itself. Component: Miner Both PoW and PoS block creation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants