Rename RippleAsset to Issue and RippleBook to Book:

* Split STAmount out of SerializedTypes.h
* New concept of "Issue consistency": when either both or neither of its
  currency and account are XRP.
* Stop checking for consistency of Issue in its constructor.
* Clarification of mIsNative logic in STAmount.
* Usual cleanups.
This commit is contained in:
Tom Ritchford
2014-07-03 18:20:47 -04:00
committed by Nik Bougalis
parent a96dee85d2
commit 206efbf30d
42 changed files with 1611 additions and 1490 deletions

View File

@@ -99,7 +99,7 @@ Json::Value doBookOffers (RPC::Context& context)
}
else
{
pay_issuer = xrpIssuer ();
pay_issuer = xrpAccount ();
}
if (isXRP (pay_currency) && ! isXRP (pay_issuer))
@@ -128,7 +128,7 @@ Json::Value doBookOffers (RPC::Context& context)
}
else
{
get_issuer = xrpIssuer ();
get_issuer = xrpAccount ();
}

View File

@@ -204,12 +204,12 @@ Json::Value doRipplePathFind (RPC::Context& context)
STAmount saMaxAmountAct;
STAmount saDstAmountAct;
STAmount saMaxAmount (
uSrcCurrencyID,
!!uSrcIssuerID
? uSrcIssuerID // Use specifed issuer.
: !!uSrcCurrencyID // Default to source account.
? Account(raSrc.getAccountID ())
: xrpIssuer(),
{uSrcCurrencyID,
!!uSrcIssuerID
? uSrcIssuerID // Use specifed issuer.
: !!uSrcCurrencyID // Default to source account.
? Account(raSrc.getAccountID ())
: xrpAccount()},
1);
saMaxAmount.negate ();

View File

@@ -198,7 +198,7 @@ Json::Value doSubscribe (RPC::Context& context)
|| !jvSubRequest[jss::taker_gets].isObject ())
return rpcError (rpcINVALID_PARAMS);
// VFALCO TODO Use RippleAsset here
// VFALCO TODO Use Issue here
Currency pay_currency;
Account pay_issuer;
Currency get_currency;