diff --git a/src/ripple/app/tx/impl/SetAccount.cpp b/src/ripple/app/tx/impl/SetAccount.cpp index b2adda6ff..59ab55389 100644 --- a/src/ripple/app/tx/impl/SetAccount.cpp +++ b/src/ripple/app/tx/impl/SetAccount.cpp @@ -680,8 +680,8 @@ SetAccount::doApply() (oldScale * stateCount) + (newScale * stateCount); // sanity check - // if stateCount == 0, then newOwnerCount == oldOwnerCount - assert(newOwnerCount >= oldOwnerCount); + if (newOwnerCount < oldOwnerCount) + return tecINTERNAL; if (newOwnerCount != oldOwnerCount) {