mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Remove old payment code
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user