mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 08:46:46 +00:00
Merge branch 'develop' into ximinez/number-fix-maxrepcusp
This commit is contained in:
@@ -181,7 +181,7 @@ jobs:
|
||||
- name: Build the binary
|
||||
working-directory: ${{ env.BUILD_DIR }}
|
||||
env:
|
||||
BUILD_NPROC: ${{ steps.nproc.outputs.nproc }}
|
||||
BUILD_NPROC: ${{ runner.os == 'Linux' && '16' || steps.nproc.outputs.nproc }}
|
||||
BUILD_TYPE: ${{ inputs.build_type }}
|
||||
CMAKE_TARGET: ${{ inputs.cmake_target }}
|
||||
run: |
|
||||
|
||||
@@ -128,7 +128,7 @@ issueFromJson(json::Value const& v)
|
||||
}
|
||||
auto const issuer = parseBase58<AccountID>(issStr.asString());
|
||||
|
||||
if (!issuer)
|
||||
if (!issuer || *issuer == noAccount() || *issuer == xrpAccount())
|
||||
{
|
||||
Throw<json::Error>("issueFromJson issuer must be a valid account");
|
||||
}
|
||||
|
||||
@@ -110,12 +110,13 @@ PermissionedDomainSet::doApply()
|
||||
if (balance < reserve)
|
||||
return tecINSUFFICIENT_RESERVE;
|
||||
|
||||
Keylet const pdKeylet =
|
||||
keylet::permissionedDomain(account_, ctx_.tx.getFieldU32(sfSequence));
|
||||
bool const fix313 = view().rules().enabled(fixSecurity3_1_3);
|
||||
auto const seq = fix313 ? ctx_.tx.getSeqValue() : ctx_.tx.getFieldU32(sfSequence);
|
||||
Keylet const pdKeylet = keylet::permissionedDomain(account_, seq);
|
||||
auto slePd = std::make_shared<SLE>(pdKeylet);
|
||||
|
||||
slePd->setAccountID(sfOwner, account_);
|
||||
slePd->setFieldU32(sfSequence, ctx_.tx.getFieldU32(sfSequence));
|
||||
slePd->setFieldU32(sfSequence, seq);
|
||||
slePd->peekFieldArray(sfAcceptedCredentials) = std::move(sortedLE);
|
||||
auto const page =
|
||||
view().dirInsert(keylet::ownerDir(account_), pdKeylet, describeOwnerDir(account_));
|
||||
|
||||
Reference in New Issue
Block a user