mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user