mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-05 17:56:49 +00:00
PoC for sponsored fees
This commit is contained in:
@@ -233,6 +233,25 @@ STTx::getSeqValue() const
|
||||
return getSeqProxy().value();
|
||||
}
|
||||
|
||||
AccountID
|
||||
STTx::getFeePayer() const
|
||||
{
|
||||
if (isFieldPresent(sfSponsor))
|
||||
{
|
||||
if (getFieldObject(sfSponsor)[sfFlags] & tfSponsorFee)
|
||||
{
|
||||
return getFieldObject(sfSponsor)[sfAccount];
|
||||
}
|
||||
}
|
||||
|
||||
if (isFieldPresent(sfDelegate))
|
||||
{
|
||||
return getAccountID(sfDelegate);
|
||||
}
|
||||
|
||||
return getAccountID(sfAccount);
|
||||
}
|
||||
|
||||
void
|
||||
STTx::sign(PublicKey const& publicKey, SecretKey const& secretKey)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user