rippled
Loading...
Searching...
No Matches
SubmitMultiSigned.cpp
1#include <xrpld/app/ledger/LedgerMaster.h>
2#include <xrpld/rpc/Context.h>
3#include <xrpld/rpc/detail/TransactionSign.h>
4
5#include <xrpl/protocol/ErrorCodes.h>
6#include <xrpl/resource/Fees.h>
7
8namespace ripple {
9
10// {
11// SigningAccounts <array>,
12// tx_json: <object>,
13// }
16{
18 auto const failHard = context.params[jss::fail_hard].asBool();
19 auto const failType = NetworkOPs::doFailHard(failHard);
20
22 context.params,
23 context.apiVersion,
24 failType,
25 context.role,
27 context.app,
29}
30
31} // namespace ripple
Represents a JSON value.
Definition json_value.h:131
bool asBool() const
std::chrono::seconds getValidatedLedgerAge()
static FailHard doFailHard(bool noMeansDont)
Definition NetworkOPs.h:76
Json::Value transactionSubmitMultiSigned(Json::Value jvRequest, unsigned apiVersion, NetworkOPs::FailHard failType, Role role, std::chrono::seconds validatedLedgerAge, Application &app, ProcessTransactionFn const &processTransaction)
Returns a Json::objectValue.
ProcessTransactionFn getProcessTxnFn(NetworkOPs &netOPs)
Charge const feeHeavyBurdenRPC
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
Json::Value doSubmitMultiSigned(RPC::JsonContext &)
unsigned int apiVersion
Definition Context.h:30
Resource::Charge & loadType
Definition Context.h:23
Application & app
Definition Context.h:22
LedgerMaster & ledgerMaster
Definition Context.h:25
NetworkOPs & netOps
Definition Context.h:24