47 using namespace test::jtx;
52 auto const alice =
Account(
"alice");
53 env.fund(
XRP(1000), alice);
59 auto const startLegSeq = env.current()->info().seq;
60 for (
int i = 0; i < 2; ++i)
66 env.closed()->txRead(env.tx()->getTransactionID()).second);
70 auto const endLegSeq = env.closed()->info().seq;
77 env.app().getLedgerMaster().txnIdFromIndex(ledgerSeq, txnIndex);
78 BEAST_EXPECT(!result);
82 uint32_t txnIndex = metas[0]->getFieldU32(sfTransactionIndex);
84 env.app().getLedgerMaster().txnIdFromIndex(0, txnIndex);
85 BEAST_EXPECT(!result);
90 env.app().getLedgerMaster().txnIdFromIndex(endLegSeq, 0);
91 BEAST_EXPECT(!result);
95 uint32_t txnIndex = metas[0]->getFieldU32(sfTransactionIndex);
96 auto result = env.app().getLedgerMaster().txnIdFromIndex(
97 endLegSeq + 1, txnIndex);
98 BEAST_EXPECT(!result);
102 uint32_t txnIndex = metas[0]->getFieldU32(sfTransactionIndex);
103 auto result = env.app().getLedgerMaster().txnIdFromIndex(
104 startLegSeq, txnIndex);
107 uint256(
"277F4FD89C20B92457FEF05FF63F6405563AD0563C73D967A29727"
112 uint32_t txnIndex = metas[1]->getFieldU32(sfTransactionIndex);
113 auto result = env.app().getLedgerMaster().txnIdFromIndex(
114 startLegSeq + 1, txnIndex);
117 uint256(
"293DF7335EBBAF4420D52E70ABF470EB4C5792CAEA2F91F76193C2"