Skip to content

Commit 90d2eb8

Browse files
committed
reverse negated else
1 parent 359a94b commit 90d2eb8

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/libxrpl/tx/transactors/Batch.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -496,14 +496,7 @@ Batch::checkBatchSign(PreclaimContext const& ctx)
496496
auto const idSigner = calcAccountID(PublicKey(makeSlice(pkSigner)));
497497
auto const sleAccount = ctx.view.read(keylet::account(idAccount));
498498

499-
// A batch can include transactions from an un-created account ONLY
500-
// when the account master key is the signer
501-
if (!sleAccount)
502-
{
503-
if (idAccount != idSigner)
504-
return tefBAD_AUTH;
505-
}
506-
else
499+
if (sleAccount)
507500
{
508501
if (isPseudoAccount(sleAccount))
509502
return tefBAD_AUTH;
@@ -512,6 +505,14 @@ Batch::checkBatchSign(PreclaimContext const& ctx)
512505
!isTesSuccess(ret))
513506
return ret;
514507
}
508+
else
509+
{
510+
if (idAccount != idSigner)
511+
return tefBAD_AUTH;
512+
513+
// A batch can include transactions from an un-created account ONLY
514+
// when the account master key is the signer
515+
}
515516
}
516517
}
517518
return ret;

0 commit comments

Comments
 (0)