mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Remove mLedger from PathState. It's not used and it's scary (because an LES could amend it).
This commit is contained in:
@@ -71,8 +71,6 @@ extern std::size_t hash_value(const aciSource& asValue);
|
||||
class PathState
|
||||
{
|
||||
protected:
|
||||
Ledger::pointer mLedger;
|
||||
|
||||
TER pushNode(const int iType, const uint160& uAccountID, const uint160& uCurrencyID, const uint160& uIssuerID);
|
||||
TER pushImply(const uint160& uAccountID, const uint160& uCurrencyID, const uint160& uIssuerID);
|
||||
|
||||
@@ -116,12 +114,11 @@ public:
|
||||
|
||||
PathState(
|
||||
const STAmount& saSend,
|
||||
const STAmount& saSendMax,
|
||||
Ledger::pointer lrLedger = Ledger::pointer()
|
||||
) : mLedger(lrLedger), saInReq(saSendMax), saOutReq(saSend) { ; }
|
||||
const STAmount& saSendMax
|
||||
) : saInReq(saSendMax), saOutReq(saSend) { ; }
|
||||
|
||||
PathState(const PathState& psSrc, bool bUnused)
|
||||
: mLedger(psSrc.mLedger), saInReq(psSrc.saInReq), saOutReq(psSrc.saOutReq) { ; }
|
||||
: saInReq(psSrc.saInReq), saOutReq(psSrc.saOutReq) { ; }
|
||||
|
||||
void setExpanded(
|
||||
const LedgerEntrySet& lesSource,
|
||||
|
||||
Reference in New Issue
Block a user