@@ -48,15 +48,17 @@ Server::Server(const std::string& end_point,
48
48
std::optional<std::string> jwt_secret,
49
49
bool use_websocket,
50
50
bool ws_compression,
51
- bool http_compression)
51
+ bool http_compression,
52
+ bool erigon_json_rpc_compatibility)
52
53
: handler_factory_{std::move (handler_factory)},
53
54
acceptor_{ioc},
54
55
allowed_origins_{std::move (allowed_origins)},
55
56
jwt_secret_ (std::move(jwt_secret)),
56
57
use_websocket_{use_websocket},
57
58
ws_compression_{ws_compression},
58
59
http_compression_{http_compression},
59
- workers_{workers} {
60
+ workers_{workers},
61
+ erigon_json_rpc_compatibility_{erigon_json_rpc_compatibility} {
60
62
const auto [host, port] = parse_endpoint (end_point);
61
63
62
64
// Open the acceptor with the option to reuse the address (i.e. SO_REUSEADDR).
@@ -91,7 +93,8 @@ Task<void> Server::run() {
91
93
SILK_TRACE << " Server::run accepted connection from " << socket.remote_endpoint ();
92
94
93
95
auto new_connection = std::make_shared<Connection>(
94
- std::move (socket), handler_factory_, allowed_origins_, jwt_secret_, use_websocket_, ws_compression_, http_compression_, workers_);
96
+ std::move (socket), handler_factory_, allowed_origins_, jwt_secret_,
97
+ use_websocket_, ws_compression_, http_compression_, workers_, erigon_json_rpc_compatibility_);
95
98
boost::asio::co_spawn (this_executor, Connection::run_read_loop (new_connection), boost::asio::detached);
96
99
}
97
100
} catch (const boost::system ::system_error& se) {
0 commit comments