xrpld
Loading...
Searching...
No Matches
BookChanges.cpp
1#include <xrpld/rpc/BookChanges.h>
2
3#include <xrpld/rpc/Context.h>
4#include <xrpld/rpc/detail/RPCLedgerHelpers.h>
5
6#include <xrpl/ledger/ReadView.h>
7
8#include <memory>
9
10namespace xrpl {
11
12json::Value
14{
16
17 json::Value result = RPC::lookupLedger(ledger, context);
18 if (ledger == nullptr)
19 return result;
20
21 return RPC::computeBookChanges(ledger);
22}
23
24} // namespace xrpl
Represents a JSON value.
Definition json_value.h:130
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.
json::Value computeBookChanges(std::shared_ptr< L const > const &lpAccepted)
Definition BookChanges.h:27
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
json::Value doBookChanges(RPC::JsonContext &)