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:
CJ Cobb
2019-10-16 12:44:25 -07:00
parent 761bb5744e
commit 7d867b806d
112 changed files with 4428 additions and 296 deletions

View File

@@ -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);