chore: update libxrpl (#2186)

This commit is contained in:
Peter Chen
2025-06-06 10:25:21 -04:00
committed by GitHub
parent 4994f9db92
commit ed47db7d39
6 changed files with 19 additions and 11 deletions

View File

@@ -140,6 +140,11 @@ struct Amendments {
REGISTER(PermissionDelegation);
REGISTER(fixPayChanCancelAfter);
REGISTER(Batch);
REGISTER(PermissionedDEX);
REGISTER(SingleAssetVault);
REGISTER(TokenEscrow);
REGISTER(fixAMMv1_3);
REGISTER(fixEnforceNFTokenTrustlineV2);
// Obsolete but supported by libxrpl
REGISTER(CryptoConditionsSuite);

View File

@@ -277,7 +277,8 @@ TransactionFeed::pub(
// determine the OrderBook
ripple::Book const book{
data->getFieldAmount(ripple::sfTakerGets).issue(),
data->getFieldAmount(ripple::sfTakerPays).issue()
data->getFieldAmount(ripple::sfTakerPays).issue(),
std::nullopt
};
if (affectedBooks.find(book) == affectedBooks.end()) {
affectedBooks.insert(book);

View File

@@ -1338,7 +1338,7 @@ parseBook(ripple::Currency pays, ripple::AccountID payIssuer, ripple::Currency g
if (pays == gets && payIssuer == getIssuer)
return std::unexpected{Status{RippledError::rpcBAD_MARKET, "badMarket"}};
return ripple::Book{{pays, payIssuer}, {gets, getIssuer}};
return ripple::Book{{pays, payIssuer}, {gets, getIssuer}, std::nullopt};
}
std::expected<ripple::Book, Status>
@@ -1446,7 +1446,7 @@ parseBook(boost::json::object const& request)
if (payCurrency == getCurrency && payIssuer == getIssuer)
return std::unexpected{Status{RippledError::rpcBAD_MARKET, "badMarket"}};
return ripple::Book{{payCurrency, payIssuer}, {getCurrency, getIssuer}};
return ripple::Book{{payCurrency, payIssuer}, {getCurrency, getIssuer}, std::nullopt};
}
std::expected<ripple::AccountID, Status>