About half of clustering support. We need this so our own nodes don't send each other proof

of work requests when we're under load.
This commit is contained in:
JoelKatz
2013-01-12 01:41:46 -08:00
parent 0d49bc877e
commit 0fabbc4f18
6 changed files with 98 additions and 30 deletions

View File

@@ -38,6 +38,7 @@ void Wallet::start()
// Retrieve network identity.
bool Wallet::nodeIdentityLoad()
{
Database* db=theApp->getWalletDB()->getDB();
ScopedLock sl(theApp->getWalletDB()->getDBLock());
bool bSuccess = false;
@@ -59,6 +60,12 @@ bool Wallet::nodeIdentityLoad()
bSuccess = true;
}
if (theConfig.NODE_PUB.isValid() && theConfig.NODE_PRIV.isValid())
{
mNodePublicKey = theConfig.NODE_PUB;
mNodePrivateKey = theConfig.NODE_PRIV;
}
return bSuccess;
}