Skip to content

[Wallet] Reduce shutdown delays when mining#893

Merged
codeofalltrades merged 1 commit intoVeil-Project:masterfrom
CaveSpectre11:shutdowns
Jan 20, 2021
Merged

[Wallet] Reduce shutdown delays when mining#893
codeofalltrades merged 1 commit intoVeil-Project:masterfrom
CaveSpectre11:shutdowns

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.

2 participants