mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +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 <boost/foreach.hpp>
|
||||
|
||||
LocalAccount::LocalAccount(bool) : mAmount(0), mSeqNum(0)
|
||||
LocalAccount::LocalAccount(bool) : mAmount(0), mSeqNum(0), mPublicKey(new CKey())
|
||||
{
|
||||
mPrivateKey.MakeNewKey();
|
||||
CKey::pointer mPublicKey(new CKey());
|
||||
mPublicKey->SetPubKey(mPrivateKey.GetPubKey());
|
||||
acctID=Hash160(mPublicKey->GetPubKey());
|
||||
mPublicKey=theApp->getPubKeyCache().store(acctID, mPublicKey);
|
||||
assert(mPublicKey);
|
||||
mAddress.SetHash160(acctID);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user