mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Removed udp visa for peers
This commit is contained in:
@@ -18,7 +18,7 @@ namespace p2p
|
||||
peer_comm_server::peer_comm_server(const uint16_t port, const uint64_t (&metric_thresholds)[5], const uint64_t max_msg_size,
|
||||
const uint64_t max_in_connections, const uint64_t max_in_connections_per_host,
|
||||
const std::vector<peer_properties> &req_known_remotes)
|
||||
: comm::comm_server<peer_comm_session>("Peer", port, metric_thresholds, max_msg_size, max_in_connections, max_in_connections_per_host, true, true),
|
||||
: comm::comm_server<peer_comm_session>("Peer", port, metric_thresholds, max_msg_size, max_in_connections, max_in_connections_per_host, true, false),
|
||||
req_known_remotes(req_known_remotes) // Copy over known peers into internal collection.
|
||||
{
|
||||
}
|
||||
@@ -171,7 +171,7 @@ namespace p2p
|
||||
const uint16_t port = peer.ip_port.port;
|
||||
LOG_DEBUG << "Trying to connect " << host << ":" << std::to_string(port);
|
||||
|
||||
std::variant<hpws::client, hpws::error> client_result = hpws::client::connect(conf::ctx.hpws_exe_path, max_msg_size, host, port, "/", {}, util::fork_detach, true, conf::cfg.contract.id, [&]() -> bool
|
||||
std::variant<hpws::client, hpws::error> client_result = hpws::client::connect(conf::ctx.hpws_exe_path, max_msg_size, host, port, "/", {}, util::fork_detach, true, visa_required ? conf::cfg.contract.id : "", [&]() -> bool
|
||||
{ return is_shutting_down; });
|
||||
|
||||
if (std::holds_alternative<hpws::error>(client_result))
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# HotPocket (Ubuntu 20.04) + NodeJs
|
||||
|
||||
FROM evernode/hotpocket:%ver%-ubt.20.04
|
||||
FROM evernode/hotpocket:test-ubt.20.04
|
||||
|
||||
# Copy the node binary from build context to the container image.
|
||||
COPY node /usr/bin/
|
||||
@@ -17,7 +17,7 @@ imgversion=$(echo "${hpversion% }")
|
||||
# imgversion="latest"
|
||||
|
||||
# Ubuntu base image
|
||||
docker build -t "$img:$imgversion-ubt.20.04" -t "$img:latest-ubt.20.04" -f ./$basefile $tmp/
|
||||
docker build -t "$img:test-ubt.20.04" -f ./$basefile $tmp/
|
||||
rm -r $tmp/*
|
||||
|
||||
# NodeJs image
|
||||
@@ -27,6 +27,6 @@ tar -xvJf $tmp/nodejs.tar.xz --strip-components=2 -C $tmp/ node-v20.4.0-linux-x6
|
||||
rm $tmp/nodejs.tar.xz
|
||||
cp ./$njsfile $tmp/
|
||||
sed -i "s/%ver%/$imgversion/g" $tmp/$njsfile
|
||||
docker build -t "$img:$imgversion-ubt.20.04-njs.20" -t "$img:latest-ubt.20.04-njs.20" -f $tmp/$njsfile $tmp
|
||||
docker build -t "$img:test-ubt.20.04-njs.20" -f $tmp/$njsfile $tmp
|
||||
|
||||
rm -r $tmp
|
||||
@@ -3,4 +3,5 @@
|
||||
|
||||
img=evernode/hotpocket
|
||||
|
||||
docker image push --all-tags $img
|
||||
docker image push "$img:test-ubt.20.04"
|
||||
docker image push "$img:test-ubt.20.04-njs.20"
|
||||
Reference in New Issue
Block a user