mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 06:55:50 +00:00
Sometimes the simplest errors are the hardest to find. Local variable
shadowed class member.
This commit is contained in:
@@ -4,13 +4,13 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <boost/foreach.hpp>
|
#include <boost/foreach.hpp>
|
||||||
|
|
||||||
LocalAccount::LocalAccount(bool) : mAmount(0), mSeqNum(0)
|
LocalAccount::LocalAccount(bool) : mAmount(0), mSeqNum(0), mPublicKey(new CKey())
|
||||||
{
|
{
|
||||||
mPrivateKey.MakeNewKey();
|
mPrivateKey.MakeNewKey();
|
||||||
CKey::pointer mPublicKey(new CKey());
|
|
||||||
mPublicKey->SetPubKey(mPrivateKey.GetPubKey());
|
mPublicKey->SetPubKey(mPrivateKey.GetPubKey());
|
||||||
acctID=Hash160(mPublicKey->GetPubKey());
|
acctID=Hash160(mPublicKey->GetPubKey());
|
||||||
mPublicKey=theApp->getPubKeyCache().store(acctID, mPublicKey);
|
mPublicKey=theApp->getPubKeyCache().store(acctID, mPublicKey);
|
||||||
|
assert(mPublicKey);
|
||||||
mAddress.SetHash160(acctID);
|
mAddress.SetHash160(acctID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user