mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 02:25:52 +00:00
Enforce lsfDefaultRipple flag in addEmptyHolding
This commit is contained in:
@@ -1150,6 +1150,8 @@ addEmptyHolding(
|
||||
auto const sle = view.peek(keylet::account(accountID));
|
||||
if (!sle)
|
||||
return tefINTERNAL;
|
||||
if ((sle->getFlags() & lsfDefaultRipple) == 0)
|
||||
return tecINTERNAL;
|
||||
return trustCreate(
|
||||
view,
|
||||
high,
|
||||
|
||||
Reference in New Issue
Block a user