rippled
Loading...
Searching...
No Matches
Fee1.cpp
1#include <xrpld/app/ledger/OpenLedger.h>
2#include <xrpld/app/main/Application.h>
3#include <xrpld/app/misc/TxQ.h>
4#include <xrpld/rpc/Context.h>
5#include <xrpld/rpc/GRPCHandlers.h>
6
7#include <xrpl/protocol/ErrorCodes.h>
8
9namespace ripple {
12{
13 auto result = context.app.getTxQ().doRPC(context.app);
14 if (result.type() == Json::objectValue)
15 return result;
16
17 // LCOV_EXCL_START
18 UNREACHABLE("ripple::doFee : invalid result type");
20 return context.params;
21 // LCOV_EXCL_STOP
22}
23
24} // namespace ripple
Represents a JSON value.
Definition json_value.h:131
virtual TxQ & getTxQ()=0
Json::Value doRPC(Application &app) const
Summarize current fee metrics for the fee RPC command.
Definition TxQ.cpp:1839
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
void inject_error(error_code_i code, JsonValue &json)
Add or update the json update to reflect the error code.
Definition ErrorCodes.h:214
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
@ rpcINTERNAL
Definition ErrorCodes.h:111
Json::Value doFee(RPC::JsonContext &context)
Definition Fee1.cpp:11
Application & app
Definition Context.h:22