From 90d463b925c377878d3abdb27eb3a1530782a668 Mon Sep 17 00:00:00 2001 From: Bronek Kozicki Date: Wed, 31 Jan 2024 06:14:57 +0000 Subject: [PATCH] test: add unit test for redundant payment (#4860) If the payee and payer are the same account, then the transaction fails in preflight with temREDUNDANT. --- src/test/app/TxQ_test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/app/TxQ_test.cpp b/src/test/app/TxQ_test.cpp index ed94ffe186..31e0b7b812 100644 --- a/src/test/app/TxQ_test.cpp +++ b/src/test/app/TxQ_test.cpp @@ -1019,6 +1019,9 @@ public: // Fail in preflight env(pay(alice, bob, XRP(-1000)), ter(temBAD_AMOUNT)); + // Fail in preflight + env(pay(alice, alice, XRP(100)), ter(temREDUNDANT)); + // Fail in preclaim env(noop(alice), fee(XRP(100000)), ter(terINSUF_FEE_B)); }