File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
src/libxrpl/tx/transactors Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments