Fixes for RPC wallet_add and work toward more commands.

This commit is contained in:
Arthur Britto
2012-06-02 11:53:38 -07:00
parent f0e3383856
commit 583b0b9052
8 changed files with 57 additions and 9 deletions

View File

@@ -583,7 +583,7 @@ TransactionEngineResult TransactionEngine::doClaim(const SerializedTransaction&
//
// Set the public key needed to use the account.
sleDst->setIFieldH160(sfAuthorizedKey, hGeneratorID);
sleDst->setIFieldAccount(sfAuthorizedKey, hGeneratorID);
// Construct a generator map entry.
sleGen = boost::make_shared<SerializedLedgerEntry>(ltGENERATOR_MAP);
@@ -930,8 +930,6 @@ TransactionEngineResult TransactionEngine::doWalletAdd(const SerializedTransacti
LedgerStateParms qry = lepNONE;
SLE::pointer sleDst = mLedger->getAccountRoot(qry, uDstAccountID);
std::cerr << str(boost::format("WalletAdd: %s") % sleDst->getFullText()) << std::endl;
if (sleDst)
{
std::cerr << "WalletAdd: account already created" << std::endl;