Introduce CheckCashMakesTrustLine amendment:

With this amendment, the CheckCash transaction creates a TrustLine
if needed.  The change is modeled after offer crossing.  And,
similar to offer crossing, cashing a check allows an account to
exceed its trust line limit.
This commit is contained in:
Scott Schurr
2021-04-07 18:11:10 -07:00
committed by manojsdoshi
parent 8d59c7dd40
commit bf75094224
5 changed files with 954 additions and 87 deletions

View File

@@ -348,8 +348,9 @@ Env::postconditions(JTx const& jt, TER ter, bool didApply)
if (jt.ter &&
!test.expect(
ter == *jt.ter,
"apply: " + transToken(ter) + " (" + transHuman(ter) + ") != " +
transToken(*jt.ter) + " (" + transHuman(*jt.ter) + ")"))
"apply: Got " + transToken(ter) + " (" + transHuman(ter) +
"); Expected " + transToken(*jt.ter) + " (" +
transHuman(*jt.ter) + ")"))
{
test.log << pretty(jt.jv) << std::endl;
// Don't check postconditions if