Payment tx fee payer ID (#7682)

This commit is contained in:
Olek
2026-07-02 22:08:37 -04:00
committed by GitHub
parent 12cf66259c
commit cd5ce8dc50
6 changed files with 98 additions and 20 deletions

View File

@@ -141,6 +141,9 @@ public:
[[nodiscard]] std::vector<uint256> const&
getBatchTransactionIDs() const;
[[nodiscard]] AccountID
getFeePayerID() const;
private:
/** Check the signature.
@param rules The current ledger rules.

View File

@@ -137,7 +137,8 @@ enum class FeePayerType {
struct FeePayer
{
Keylet entry;
AccountID id;
Keylet keylet;
SF_AMOUNT const& balanceField;
FeePayerType type{FeePayerType::Account};
};
@@ -317,6 +318,7 @@ public:
static NotTEC
checkSponsor(ReadView const& view, STTx const& tx);
/////////////////////////////////////////////////////
// Interface used by AccountDelete