Remove old payment code

This commit is contained in:
seelabs
2020-01-07 09:28:13 -08:00
committed by Manoj doshi
parent 9d3626fec5
commit 81326a6d08
39 changed files with 176 additions and 5366 deletions

View File

@@ -263,7 +263,10 @@ public:
env (pay (gw, carol, EUR (100)));
// Create more offers than the loop max count in DeliverNodeReverse
for (int i=0;i<101;++i)
// Note: the DeliverNodeReverse code has been removed; however since
// this is a regression test the original test is being left as-is for
// now.
for (int i = 0; i < 101; ++i)
env (offer (carol, USD (1), EUR (2)));
env (pay (alice, bob, EUR (epsilon)), path (~EUR), sendmax (USD (100)));
@@ -3351,13 +3354,9 @@ public:
env (trust (ann, D_BUX(100)));
env.close();
// Determine which TEC code we expect.
TER const tecExpect =
features[featureFlow] ? TER {temBAD_PATH} : TER {tecPATH_DRY};
// This payment caused the assert.
env (pay (ann, ann, D_BUX(30)),
path (A_BUX, D_BUX), sendmax (A_BUX(30)), ter (tecExpect));
path (A_BUX, D_BUX), sendmax (A_BUX(30)), ter (temBAD_PATH));
env.close();
env.require (balance (ann, A_BUX(none)));
@@ -4617,28 +4616,21 @@ class Offer_manual_test : public Offer_test
{
using namespace jtx;
FeatureBitset const all{supported_amendments()};
FeatureBitset const flow{featureFlow};
FeatureBitset const f1373{fix1373};
FeatureBitset const flowCross{featureFlowCross};
FeatureBitset const f1513{fix1513};
FeatureBitset const takerDryOffer{fixTakerDryOfferRemoval};
testAll(all - flow - f1373 - flowCross - f1513);
testAll(all - flow - f1373 - flowCross );
testAll(all - flow - f1373 - f1513);
testAll(all - flow - f1373 );
testAll(all - f1373 - flowCross - f1513);
testAll(all - f1373 - flowCross );
testAll(all - f1373 - f1513);
testAll(all - f1373 );
testAll(all - flowCross - f1513);
testAll(all - flowCross );
testAll(all - f1513);
testAll(all );
testAll(all - f1373 - flowCross - f1513);
testAll(all - f1373 - flowCross );
testAll(all - f1373 - f1513);
testAll(all - f1373 );
testAll(all - flowCross - f1513);
testAll(all - flowCross );
testAll(all - f1513);
testAll(all );
testAll(all - flow - f1373 - flowCross - takerDryOffer);
testAll(all - flow - f1373 - takerDryOffer);
testAll(all - f1373 - flowCross - takerDryOffer);
testAll(all - f1373 - flowCross - takerDryOffer);
}
};