From eb7e17e4f869f403815ca6bda049c616916bfbfc 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 a8a0a1663..2d14e5b77 100644 --- a/src/test/app/TxQ_test.cpp +++ b/src/test/app/TxQ_test.cpp @@ -1036,6 +1036,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)); }