mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Remove obsolete TargetLedger support from TransactionFromats.
This commit is contained in:
@@ -57,8 +57,7 @@ Transaction::Transaction(
|
||||
const NewcoinAddress& naSourceAccount,
|
||||
uint32 uSeq,
|
||||
uint64 uFee,
|
||||
uint32 uSourceTag,
|
||||
uint32 uLedger) :
|
||||
uint32 uSourceTag) :
|
||||
mStatus(NEW)
|
||||
{
|
||||
mAccountFrom = naSourceAccount;
|
||||
@@ -79,12 +78,6 @@ Transaction::Transaction(
|
||||
mTransaction->makeITFieldPresent(sfSourceTag);
|
||||
mTransaction->setITFieldU32(sfSourceTag, uSourceTag);
|
||||
}
|
||||
|
||||
if (uLedger)
|
||||
{
|
||||
mTransaction->makeITFieldPresent(sfTargetLedger);
|
||||
mTransaction->setITFieldU32(sfTargetLedger, uLedger);
|
||||
}
|
||||
}
|
||||
|
||||
bool Transaction::sign(const NewcoinAddress& naAccountPrivate)
|
||||
@@ -179,13 +172,12 @@ Transaction::pointer Transaction::sharedCreate(
|
||||
uint32 uSeq,
|
||||
uint64 uFee,
|
||||
uint32 uSourceTag,
|
||||
uint32 uLedger,
|
||||
const NewcoinAddress& naCreateAccountID,
|
||||
uint64 uFund)
|
||||
{
|
||||
pointer tResult = boost::make_shared<Transaction>(ttPAYMENT,
|
||||
naPublicKey, naSourceAccount,
|
||||
uSeq, uFee, uSourceTag, uLedger);
|
||||
uSeq, uFee, uSourceTag);
|
||||
|
||||
return tResult->setCreate(naPrivateKey, naCreateAccountID, uFund);
|
||||
}
|
||||
@@ -213,13 +205,12 @@ Transaction::pointer Transaction::sharedPayment(
|
||||
uint32 uSeq,
|
||||
uint64 uFee,
|
||||
uint32 uSourceTag,
|
||||
uint32 uLedger,
|
||||
const NewcoinAddress& toAccount,
|
||||
uint64 uAmount)
|
||||
{
|
||||
pointer tResult = boost::make_shared<Transaction>(ttPAYMENT,
|
||||
naPublicKey, naSourceAccount,
|
||||
uSeq, uFee, uSourceTag, uLedger);
|
||||
uSeq, uFee, uSourceTag);
|
||||
|
||||
return tResult->setPayment(naPrivateKey, toAccount, uAmount);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user