mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 19:15:54 +00:00
fix: enable LedgerStateFix for delegation (#5427)
This commit is contained in:
@@ -396,7 +396,7 @@ TRANSACTION(ttORACLE_DELETE, 52, OracleDelete, Delegation::delegatable, ({
|
|||||||
}))
|
}))
|
||||||
|
|
||||||
/** This transaction type fixes a problem in the ledger state */
|
/** This transaction type fixes a problem in the ledger state */
|
||||||
TRANSACTION(ttLEDGER_STATE_FIX, 53, LedgerStateFix, Delegation::notDelegatable, ({
|
TRANSACTION(ttLEDGER_STATE_FIX, 53, LedgerStateFix, Delegation::delegatable, ({
|
||||||
{sfLedgerFixType, soeREQUIRED},
|
{sfLedgerFixType, soeREQUIRED},
|
||||||
{sfOwner, soeOPTIONAL},
|
{sfOwner, soeOPTIONAL},
|
||||||
}))
|
}))
|
||||||
|
|||||||
@@ -215,9 +215,7 @@ class Delegate_test : public beast::unit_test::suite
|
|||||||
ter(terNO_ACCOUNT));
|
ter(terNO_ACCOUNT));
|
||||||
}
|
}
|
||||||
|
|
||||||
// for security reasons, AccountSet, SetRegularKey, SignerListSet,
|
// non-delegatable transaction
|
||||||
// AccountDelete, DelegateSet are prohibited to be delegated to
|
|
||||||
// other accounts.
|
|
||||||
{
|
{
|
||||||
env(delegate::set(gw, alice, {"SetRegularKey"}),
|
env(delegate::set(gw, alice, {"SetRegularKey"}),
|
||||||
ter(tecNO_PERMISSION));
|
ter(tecNO_PERMISSION));
|
||||||
@@ -229,6 +227,10 @@ class Delegate_test : public beast::unit_test::suite
|
|||||||
ter(tecNO_PERMISSION));
|
ter(tecNO_PERMISSION));
|
||||||
env(delegate::set(gw, alice, {"SetRegularKey"}),
|
env(delegate::set(gw, alice, {"SetRegularKey"}),
|
||||||
ter(tecNO_PERMISSION));
|
ter(tecNO_PERMISSION));
|
||||||
|
env(delegate::set(gw, alice, {"EnableAmendment"}),
|
||||||
|
ter(tecNO_PERMISSION));
|
||||||
|
env(delegate::set(gw, alice, {"UNLModify"}), ter(tecNO_PERMISSION));
|
||||||
|
env(delegate::set(gw, alice, {"SetFee"}), ter(tecNO_PERMISSION));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user