mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-28 22:45:49 +00:00
disallow specifying both escrowid and offsersequence on escrow
This commit is contained in:
@@ -439,8 +439,9 @@ EscrowFinish::preflight(PreflightContext const& ctx)
|
|||||||
return temMALFORMED;
|
return temMALFORMED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ctx.tx.isFieldPresent(sfEscrowID) &&
|
if ((!ctx.tx.isFieldPresent(sfEscrowID) &&
|
||||||
!ctx.tx.isFieldPresent(sfOfferSequence))
|
!ctx.tx.isFieldPresent(sfOfferSequence)) ||
|
||||||
|
ctx.isFieldPresent(sfEscrowID) && ctx.isFieldPresent(sfOfferSequence))
|
||||||
return temMALFORMED;
|
return temMALFORMED;
|
||||||
|
|
||||||
return tesSUCCESS;
|
return tesSUCCESS;
|
||||||
@@ -725,8 +726,10 @@ EscrowCancel::preflight(PreflightContext const& ctx)
|
|||||||
return temMALFORMED;
|
return temMALFORMED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ctx.tx.isFieldPresent(sfEscrowID) &&
|
if ((!ctx.tx.isFieldPresent(sfEscrowID) &&
|
||||||
!ctx.tx.isFieldPresent(sfOfferSequence))
|
!ctx.tx.isFieldPresent(sfOfferSequence)) ||
|
||||||
|
ctx.tx.isFieldPresent(sfEscrowID) &&
|
||||||
|
ctx.tx.isFieldPresent(sfOfferSequence))
|
||||||
return temMALFORMED;
|
return temMALFORMED;
|
||||||
|
|
||||||
return preflight2(ctx);
|
return preflight2(ctx);
|
||||||
|
|||||||
Reference in New Issue
Block a user