This commit is contained in:
Richard Holland
2023-12-04 11:34:45 +00:00
parent ee33c97950
commit 9f650f4258
2 changed files with 6 additions and 27 deletions

View File

@@ -60,34 +60,12 @@ namespace test {
// * @param pass if the Tx should be applied successfully
// * @return true if meet the expectation of apply result
// */
bool inline applyAndTestResult(
inline bool
applyAndTestUNLRResult(
jtx::Env& env,
ripple::OpenView& view,
ripple::STTx const& tx,
bool pass)
{
auto res = apply(env.app(), view, tx, ApplyFlags::tapNONE, env.journal);
if (pass)
return res.first == tesSUCCESS;
else
return res.first == tefFAILURE || res.first == temDISABLED;
}
* /
inline bool
applyAndTestUNLRResult(
jtx::Env& env,
OpenView& view,
STTx const& tx,
bool pass)
{
auto res = apply(env.app(), view, tx, ApplyFlags::tapNONE, env.journal);
if (pass)
return res.first == tesSUCCESS;
else
return res.first == tefFAILURE || res.first == temDISABLED ||
res.first == temMALFORMED ||
res.first == telIMPORT_VL_KEY_NOT_RECOGNISED;
}
OpenView& view,
STTx const& tx,
bool pass);
/**
* Verify the content of UNL Report entries (public key and ledger sequence)

View File

@@ -17,6 +17,7 @@
*/
//==============================================================================
#include <ripple/protocol/jss.h>
#include <test/jtx/Env.h>
#include <test/jtx/acctdelete.h>