mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-25 08:00:22 +00:00
more fixes
This commit is contained in:
@@ -217,10 +217,10 @@ public:
|
||||
[[nodiscard]] AccountID
|
||||
getAccountID(SField const& field) const;
|
||||
|
||||
/** The account responsible for the fee and authorization: the delegate when
|
||||
/** The account responsible for the authorization: the delegate when
|
||||
sfDelegate is present, otherwise the account. */
|
||||
[[nodiscard]] AccountID
|
||||
getFeePayer() const;
|
||||
getInitiator() const;
|
||||
|
||||
[[nodiscard]] Blob
|
||||
getFieldVL(SField const& field) const;
|
||||
|
||||
@@ -634,7 +634,7 @@ STObject::getAccountID(SField const& field) const
|
||||
}
|
||||
|
||||
AccountID
|
||||
STObject::getFeePayer() const
|
||||
STObject::getInitiator() const
|
||||
{
|
||||
// If sfDelegate is present, the delegate account is the payer
|
||||
// note: if a delegate is specified, its authorization to act on behalf of the account is
|
||||
|
||||
@@ -440,7 +440,7 @@ Batch::preflightSigValidated(PreflightContext const& ctx)
|
||||
{
|
||||
// A delegated inner is signed by the delegate, not the account holder,
|
||||
// so the delegate is the required signer when present.
|
||||
AccountID const authorizer = rb.getFeePayer();
|
||||
AccountID const authorizer = rb.getInitiator();
|
||||
|
||||
// The outer account signs the batch itself, so it is never added to the
|
||||
// required signers.
|
||||
|
||||
Reference in New Issue
Block a user