Merge bug fixes (#1260)
* Fix for incorrect locking in GetPubKey() (keystore.cpp) * Fix Cmd-Q / Menu Quit shutdown on OSX * Addition of ImmatureCreditCached to MarkDirty() To protect against possible invalidation and to bring conformity to the code.
This commit is contained in:
parent
5cb6486616
commit
053e374e42
@ -19,6 +19,7 @@ bool CBasicKeyStore::GetPubKey(const CKeyID &address, CPubKey &vchPubKeyOut) con
|
|||||||
{
|
{
|
||||||
CKey key;
|
CKey key;
|
||||||
if (!GetKey(address, key)) {
|
if (!GetKey(address, key)) {
|
||||||
|
LOCK(cs_KeyStore);
|
||||||
WatchKeyMap::const_iterator it = mapWatchKeys.find(address);
|
WatchKeyMap::const_iterator it = mapWatchKeys.find(address);
|
||||||
if (it != mapWatchKeys.end()) {
|
if (it != mapWatchKeys.end()) {
|
||||||
vchPubKeyOut = it->second;
|
vchPubKeyOut = it->second;
|
||||||
|
@ -411,6 +411,7 @@ void BitcoinApplication::createSplashScreen(const NetworkStyle *networkStyle)
|
|||||||
splash->setAttribute(Qt::WA_DeleteOnClose);
|
splash->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
splash->show();
|
splash->show();
|
||||||
connect(this, SIGNAL(splashFinished(QWidget*)), splash, SLOT(slotFinish(QWidget*)));
|
connect(this, SIGNAL(splashFinished(QWidget*)), splash, SLOT(slotFinish(QWidget*)));
|
||||||
|
connect(this, SIGNAL(requestedShutdown()), splash, SLOT(close()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void BitcoinApplication::startThread()
|
void BitcoinApplication::startThread()
|
||||||
|
@ -398,6 +398,7 @@ public:
|
|||||||
{
|
{
|
||||||
fCreditCached = false;
|
fCreditCached = false;
|
||||||
fAvailableCreditCached = false;
|
fAvailableCreditCached = false;
|
||||||
|
fImmatureCreditCached = false;
|
||||||
fAnonymizedCreditCached = false;
|
fAnonymizedCreditCached = false;
|
||||||
fDenomUnconfCreditCached = false;
|
fDenomUnconfCreditCached = false;
|
||||||
fDenomConfCreditCached = false;
|
fDenomConfCreditCached = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user