mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 02:55:50 +00:00
Replace getSeqProxy().value() with getSeqValue() where appropriate
This commit is contained in:
@@ -3514,7 +3514,7 @@ NetworkOPsImp::addAccountHistoryJob(SubAccountHistoryInfoWeak subInfo)
|
||||
{
|
||||
auto stx = tx->getSTransaction();
|
||||
if (stx->getAccountID(sfAccount) == accountId &&
|
||||
stx->getSeqProxy().value() == 1)
|
||||
stx->getSeqValue() == 1)
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -184,7 +184,7 @@ CreateCheck::doApply()
|
||||
|
||||
// Note that we use the value from the sequence or ticket as the
|
||||
// Check sequence. For more explanation see comments in SeqProxy.h.
|
||||
std::uint32_t const seq = ctx_.tx.getSeqProxy().value();
|
||||
std::uint32_t const seq = ctx_.tx.getSeqValue();
|
||||
Keylet const checkKeylet = keylet::check(account_, seq);
|
||||
auto sleCheck = std::make_shared<SLE>(checkKeylet);
|
||||
|
||||
|
||||
@@ -969,7 +969,7 @@ CreateOffer::applyGuts(Sandbox& sb, Sandbox& sbCancel)
|
||||
|
||||
// Note that we we use the value from the sequence or ticket as the
|
||||
// offer sequence. For more explanation see comments in SeqProxy.h.
|
||||
auto const offerSequence = ctx_.tx.getSeqProxy().value();
|
||||
auto const offerSequence = ctx_.tx.getSeqValue();
|
||||
|
||||
// This is the original rate of the offer, and is the rate at which
|
||||
// it will be placed, even if crossing offers change the amounts that
|
||||
|
||||
@@ -240,8 +240,7 @@ EscrowCreate::doApply()
|
||||
|
||||
// Create escrow in ledger. Note that we we use the value from the
|
||||
// sequence or ticket. For more explanation see comments in SeqProxy.h.
|
||||
Keylet const escrowKeylet =
|
||||
keylet::escrow(account, ctx_.tx.getSeqProxy().value());
|
||||
Keylet const escrowKeylet = keylet::escrow(account, ctx_.tx.getSeqValue());
|
||||
auto const slep = std::make_shared<SLE>(escrowKeylet);
|
||||
(*slep)[sfAmount] = ctx_.tx[sfAmount];
|
||||
(*slep)[sfAccount] = account;
|
||||
|
||||
@@ -134,7 +134,7 @@ MPTokenIssuanceCreate::doApply()
|
||||
view(),
|
||||
j_,
|
||||
{.account = account_,
|
||||
.sequence = tx.getSeqProxy().value(),
|
||||
.sequence = tx.getSeqValue(),
|
||||
.flags = tx.getFlags(),
|
||||
.maxAmount = tx[~sfMaximumAmount],
|
||||
.assetScale = tx[~sfAssetScale],
|
||||
|
||||
@@ -259,7 +259,7 @@ PayChanCreate::doApply()
|
||||
// Note that we we use the value from the sequence or ticket as the
|
||||
// payChan sequence. For more explanation see comments in SeqProxy.h.
|
||||
Keylet const payChanKeylet =
|
||||
keylet::payChan(account, dst, ctx_.tx.getSeqProxy().value());
|
||||
keylet::payChan(account, dst, ctx_.tx.getSeqValue());
|
||||
auto const slep = std::make_shared<SLE>(payChanKeylet);
|
||||
|
||||
// Funds held in this channel
|
||||
|
||||
Reference in New Issue
Block a user