rippled
Loading...
Searching...
No Matches
BookChanges.cpp
1#include <xrpld/rpc/BookChanges.h>
2#include <xrpld/rpc/Context.h>
3#include <xrpld/rpc/detail/RPCLedgerHelpers.h>
4
5#include <xrpl/ledger/ReadView.h>
6
7namespace xrpl {
8
11{
13
14 Json::Value result = RPC::lookupLedger(ledger, context);
15 if (ledger == nullptr)
16 return result;
17
18 return RPC::computeBookChanges(ledger);
19}
20
21} // namespace xrpl
Represents a JSON value.
Definition json_value.h:130
Json::Value computeBookChanges(std::shared_ptr< L const > const &lpAccepted)
Definition BookChanges.h:27
Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext const &context, Json::Value &result)
Looks up a ledger from a request and fills a Json::Value with ledger data.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
Json::Value doBookChanges(RPC::JsonContext &)