mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 19:15:54 +00:00
Tie into PubKeyCache.
This commit is contained in:
@@ -1,13 +1,17 @@
|
|||||||
#include "Wallet.h"
|
#include "Wallet.h"
|
||||||
#include "NewcoinAddress.h"
|
#include "NewcoinAddress.h"
|
||||||
|
#include "Application.h"
|
||||||
#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)
|
||||||
{
|
{
|
||||||
mPrivateKey.MakeNewKey();
|
mPrivateKey.MakeNewKey();
|
||||||
mPublicKey.SetPubKey(mPrivateKey.GetPubKey());
|
CKey::pointer mPublicKey(new CKey());
|
||||||
mAddress.SetPubKey(mPublicKey.GetPubKey());
|
mPublicKey->SetPubKey(mPrivateKey.GetPubKey());
|
||||||
|
acctID=Hash160(mPublicKey->GetPubKey());
|
||||||
|
mPublicKey=theApp->getPubKeyCache().store(acctID, mPublicKey);
|
||||||
|
mAddress.SetHash160(acctID);
|
||||||
}
|
}
|
||||||
|
|
||||||
Wallet::Wallet()
|
Wallet::Wallet()
|
||||||
|
|||||||
Reference in New Issue
Block a user