mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
gRPC support for account_tx and tx
- Add support for all transaction types and ledger object types to gRPC implementation of tx and account_tx. - Create common handlers for tx and account_tx. - Remove mutex and abort() from gRPC server. JobQueue is stopped before gRPC server, with all coroutines executed to completion, so no need for synchronization.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -82,25 +82,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
/** Set InvoiceID on a JTx. */
|
||||
class invoice_id
|
||||
{
|
||||
private:
|
||||
uint256 const id_;
|
||||
|
||||
public:
|
||||
explicit invoice_id (uint256 const& id)
|
||||
: id_{id}
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
operator()(Env&, JTx& jt) const
|
||||
{
|
||||
jt[sfInvoiceID.jsonName] = to_string (id_);
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace jtx
|
||||
} // namespace test
|
||||
|
||||
|
||||
Reference in New Issue
Block a user