mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-28 14:35:48 +00:00
.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <ripple/protocol/jss.h>
|
||||
#include <test/jtx/Env.h>
|
||||
#include <test/jtx/acctdelete.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user