mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 08:46:46 +00:00
keylet::payChan -> keylet::payChannel
This commit is contained in:
@@ -209,7 +209,7 @@ escrow(AccountID const& src, std::uint32_t seq) noexcept;
|
||||
|
||||
/** A PaymentChannel */
|
||||
Keylet
|
||||
payChan(AccountID const& src, AccountID const& dst, std::uint32_t seq) noexcept;
|
||||
payChannel(AccountID const& src, AccountID const& dst, std::uint32_t seq) noexcept;
|
||||
|
||||
/** NFT page keylets
|
||||
|
||||
|
||||
@@ -346,7 +346,7 @@ LEDGER_ENTRY(ltESCROW, 0x0075, Escrow, escrow, ({
|
||||
|
||||
/** A ledger object describing a single unidirectional XRP payment channel.
|
||||
|
||||
\sa keylet::payChan
|
||||
\sa keylet::payChannel
|
||||
*/
|
||||
LEDGER_ENTRY(ltPAYCHAN, 0x0078, PayChannel, payment_channel, ({
|
||||
{sfAccount, soeREQUIRED},
|
||||
|
||||
@@ -376,7 +376,7 @@ escrow(AccountID const& src, std::uint32_t seq) noexcept
|
||||
}
|
||||
|
||||
Keylet
|
||||
payChan(AccountID const& src, AccountID const& dst, std::uint32_t seq) noexcept
|
||||
payChannel(AccountID const& src, AccountID const& dst, std::uint32_t seq) noexcept
|
||||
{
|
||||
return {ltPAYCHAN, indexHash(LedgerNameSpace::XRP_PAYMENT_CHANNEL, src, dst, seq)};
|
||||
}
|
||||
|
||||
@@ -139,7 +139,7 @@ PaymentChannelCreate::doApply()
|
||||
//
|
||||
// Note that 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.getSeqValue());
|
||||
Keylet const payChanKeylet = keylet::payChannel(account, dst, ctx_.tx.getSeqValue());
|
||||
auto const slep = std::make_shared<SLE>(payChanKeylet);
|
||||
|
||||
// Funds held in this channel
|
||||
|
||||
@@ -385,7 +385,7 @@ public:
|
||||
env(escrow::cancel(becky, alice, escrowSeq));
|
||||
env.close();
|
||||
|
||||
Keylet const alicePayChanKey{keylet::payChan(alice, becky, env.seq(alice))};
|
||||
Keylet const alicePayChanKey{keylet::payChannel(alice, becky, env.seq(alice))};
|
||||
|
||||
env(payChanCreate(alice, becky, XRP(57), 4s, env.now() + 2s, alice.pk()));
|
||||
env.close();
|
||||
@@ -416,7 +416,7 @@ public:
|
||||
|
||||
// gw creates a PayChannel with alice as the destination, this should
|
||||
// prevent alice from deleting her account.
|
||||
Keylet const gwPayChanKey{keylet::payChan(gw, alice, env.seq(gw))};
|
||||
Keylet const gwPayChanKey{keylet::payChannel(gw, alice, env.seq(gw))};
|
||||
|
||||
env(payChanCreate(gw, alice, XRP(68), 4s, env.now() + 2s, alice.pk()));
|
||||
env.close();
|
||||
|
||||
@@ -62,7 +62,7 @@ struct PayChan_test : public beast::unit_test::suite
|
||||
auto const sle = view.read(keylet::account(account));
|
||||
if (!sle)
|
||||
return {};
|
||||
auto const k = keylet::payChan(account, dst, (*sle)[sfSequence] - 1);
|
||||
auto const k = keylet::payChannel(account, dst, (*sle)[sfSequence] - 1);
|
||||
return {k.key, view.read(k)};
|
||||
}
|
||||
|
||||
|
||||
@@ -576,7 +576,7 @@ claim(
|
||||
uint256
|
||||
channel(AccountID const& account, AccountID const& dst, std::uint32_t seqProxyValue)
|
||||
{
|
||||
auto const k = keylet::payChan(account, dst, seqProxyValue);
|
||||
auto const k = keylet::payChannel(account, dst, seqProxyValue);
|
||||
return k.key;
|
||||
}
|
||||
|
||||
|
||||
@@ -589,7 +589,7 @@ class AccountTx_test : public beast::unit_test::suite
|
||||
env(payChanCreate, sig(alie));
|
||||
env.close();
|
||||
|
||||
std::string const payChanIndex{strHex(keylet::payChan(alice, gw, payChanSeq).key)};
|
||||
std::string const payChanIndex{strHex(keylet::payChannel(alice, gw, payChanSeq).key)};
|
||||
|
||||
{
|
||||
Json::Value payChanFund;
|
||||
|
||||
@@ -1710,7 +1710,7 @@ class LedgerEntry_test : public beast::unit_test::suite
|
||||
|
||||
std::string const ledgerHash{to_string(env.closed()->header().hash)};
|
||||
|
||||
uint256 const payChanIndex{keylet::payChan(alice, env.master, env.seq(alice) - 1).key};
|
||||
uint256 const payChanIndex{keylet::payChannel(alice, env.master, env.seq(alice) - 1).key};
|
||||
{
|
||||
// Request the payment channel using its index.
|
||||
Json::Value jvParams;
|
||||
|
||||
Reference in New Issue
Block a user