mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add support for XLS-81 Permissioned DEX (#5404)
Modified transactions: - OfferCreate - Payment Modified RPCs: - book_changes - subscribe - book_offers - ripple_path_find - path_find Spec: https://github.com/XRPLF/XRPL-Standards/pull/281
This commit is contained in:
@@ -132,7 +132,8 @@ struct Directory_test : public beast::unit_test::suite
|
||||
|
||||
// Now check the orderbook: it should be in the order we placed
|
||||
// the offers.
|
||||
auto book = BookDirs(*env.current(), Book({xrpIssue(), USD.issue()}));
|
||||
auto book = BookDirs(
|
||||
*env.current(), Book({xrpIssue(), USD.issue(), std::nullopt}));
|
||||
int count = 1;
|
||||
|
||||
for (auto const& offer : book)
|
||||
@@ -291,7 +292,8 @@ struct Directory_test : public beast::unit_test::suite
|
||||
// should have no entries and be empty:
|
||||
{
|
||||
Sandbox sb(env.closed().get(), tapNONE);
|
||||
uint256 const bookBase = getBookBase({xrpIssue(), USD.issue()});
|
||||
uint256 const bookBase =
|
||||
getBookBase({xrpIssue(), USD.issue(), std::nullopt});
|
||||
|
||||
BEAST_EXPECT(dirIsEmpty(sb, keylet::page(bookBase)));
|
||||
BEAST_EXPECT(!sb.succ(bookBase, getQualityNext(bookBase)));
|
||||
|
||||
Reference in New Issue
Block a user