mirror of
https://github.com/Xahau/xahaud.git
synced 2026-08-23 00:10:54 +00:00
Add gRPC support (#3127):
* add support for AccountInfo, Fee and Submit RPCs * add partial support for Tx RPC (only supports Payments)
This commit is contained in:
@@ -30,7 +30,7 @@ namespace {
|
||||
template <typename Function>
|
||||
Handler::Method<Json::Value> byRef (Function const& f)
|
||||
{
|
||||
return [f] (Context& context, Json::Value& result)
|
||||
return [f] (JsonContext& context, Json::Value& result)
|
||||
{
|
||||
result = f (context);
|
||||
if (result.type() != Json::objectValue)
|
||||
@@ -44,7 +44,7 @@ Handler::Method<Json::Value> byRef (Function const& f)
|
||||
}
|
||||
|
||||
template <class Object, class HandlerImpl>
|
||||
Status handle (Context& context, Object& object)
|
||||
Status handle (JsonContext& context, Object& object)
|
||||
{
|
||||
HandlerImpl handler (context);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user