Permalink
Browse files

notes

  • Loading branch information...
jedmccaleb committed May 9, 2014
1 parent b17a817 commit c6dc9cebf3f3bb1395e679974e233a659f0a4d5f
@@ -1395,14 +1395,7 @@ SLE::pointer Ledger::getDirNode (uint256 const& uNodeIndex)
return getASNodeI (uNodeIndex, ltDIR_NODE);
}
//
// Generator Map
//
SLE::pointer Ledger::getGenerator (const uint160& uGeneratorID)
{
return getASNodeI (getGeneratorIndex (uGeneratorID), ltGENERATOR_MAP);
}
//
// Offer
@@ -328,15 +328,7 @@ class Ledger
return getAccountRootIndex (account.getAccountID ());
}
//
// Generator Map functions
//
SLE::pointer getGenerator (const uint160 & uGeneratorID);
static uint256 getGeneratorIndex (const uint160 & uGeneratorID);
//
// Order book functions
@@ -160,7 +160,7 @@ static void autofill_fee (Json::Value& request,
// VFALCO TODO This function should take a reference to the params, modify it
// as needed, and then there should be a separate function to
// submit the tranaction
// submit the transaction
//
Json::Value RPCHandler::transactionSign (Json::Value params,
bool bSubmit, bool bFailHard, Application::ScopedLockType& mlh)
@@ -669,7 +669,7 @@ Json::Value RPCHandler::accountFromString (Ledger::ref lrLedger, RippleAddress&
else
{
// We allow the use of the seeds to access #0.
// This is poor practice and merely for debuging convenience.
// This is poor practice and merely for debugging convenience.
RippleAddress naRegular0Public;
RippleAddress naRegular0Private;
@@ -2112,6 +2112,44 @@ Json::Value RPCHandler::doFetchInfo (Json::Value jvParams, Resource::Charge& loa
return ret;
}
Json::Value RPCHandler::doInflate(Json::Value params, Resource::Charge& loadType, Application::ScopedLockType& masterLockHolder)
{
masterLockHolder.unlock();
loadType = Resource::feeMediumBurdenRPC;
if (!params.isMember("tx_blob"))
{
bool bFailHard = params.isMember("fail_hard") && params["fail_hard"].asBool();
return transactionSign(params, true, bFailHard, masterLockHolder);
}
Json::Value jvResult;
std::pair<Blob, bool> ret(strUnHex(params["tx_blob"].asString()));
if (!ret.second || !ret.first.size())
return rpcError(rpcINVALID_PARAMS);
Serializer sTrans(ret.first);
SerializerIterator sitTrans(sTrans);
SerializedTransaction::pointer stpTrans;
try
{
stpTrans = boost::make_shared<SerializedTransaction>(boost::ref(sitTrans));
}
catch (std::exception& e)
{
jvResult["error"] = "invalidTransaction";
jvResult["error_exception"] = e.what();
return jvResult;
}
}
Json::Value RPCHandler::doServerInfo (Json::Value, Resource::Charge& loadType, Application::ScopedLockType& masterLockHolder)
{
Json::Value ret (Json::objectValue);
@@ -107,7 +107,8 @@ class RPCHandler
Json::Value doConsensusInfo (Json::Value params, Resource::Charge& loadType, Application::ScopedLockType& mlh);
Json::Value doFeature (Json::Value params, Resource::Charge& loadType, Application::ScopedLockType& mlh);
Json::Value doFetchInfo (Json::Value params, Resource::Charge& loadType, Application::ScopedLockType& mlh);
Json::Value doGetCounts (Json::Value params, Resource::Charge& loadType, Application::ScopedLockType& mlh);
Json::Value doGetCounts (Json::Value params, Resource::Charge& loadType, Application::ScopedLockType& mlh);
Json::Value doInflate (Json::Value params, Resource::Charge& loadType, Application::ScopedLockType& mlh);
Json::Value doInternal (Json::Value params, Resource::Charge& loadType, Application::ScopedLockType& mlh);
Json::Value doLedger (Json::Value params, Resource::Charge& loadType, Application::ScopedLockType& mlh);
Json::Value doLedgerAccept (Json::Value params, Resource::Charge& loadType, Application::ScopedLockType& mlh);
@@ -967,6 +967,7 @@ SHAMapTreeNode* SHAMap::getNodeAsync (
if (id.isRoot ())
{
// JED: wtf?
// It is legal to replace the root
mTNByID.replace (id, ptr);
root = ptr;

0 comments on commit c6dc9ce

Please sign in to comment.