zettel-kasten / zettelkasten

MIT License
23 stars 10 forks source link

conditional fix for specific linux wallet crash #8

Open zettel-kasten opened 6 years ago

zettel-kasten commented 6 years ago

concern qt wallet for linux. When clicking on mining tab start/stop mining or changing mining threads the wallet will crash.

Removing this code in miningpage.cpp helps:

if (fGenerate && !hasMiningprivkey && !unlockContext.get())
    {
        this->unlockContext.reset(new WalletModel::UnlockContext(model->requestUnlock()));
        if (!unlockContext->isValid())
        {
            unlockContext.reset(NULL);
            return;
        }
    }

Not sure why exactly this happens, but this provides a temporary solution until we know how to handle this.