Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preparations for 2.1 release #108

Merged
merged 6 commits into from
Feb 11, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,10 @@
/build/
/.direnv/
/node_modules/

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.1.0.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.1.0.cjs
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ FROM europe-west3-docker.pkg.dev/hoprassociation/docker-images/hoprd:${UPSTREAM_
# not used at the moment, but might be useful in the future
ENV DAPPNODE=true

ENTRYPOINT ["/usr/bin/tini", "--", "node", "./lib/main.cjs"]
ADD hoprd.cfg.yaml /app/hoprd.cfg.yaml

ENTRYPOINT ["/bin/hoprd", "--configurationFilePath", "/app/hoprd.cfg.yaml"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ To install HOPR follow the instructions [here.](https://docs.hoprnet.org/node/us

Hopr Admin: v0.6.5

Hoprd: v2.0.0-rc.10
Hoprd: v2.1.0-rc.1
2 changes: 1 addition & 1 deletion dappnode_package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hopr.public.dappnode.eth",
"version": "1.0.27",
"version": "1.0.19",
NumberFour8 marked this conversation as resolved.
Show resolved Hide resolved
"upstreamVersion": "providence",
NumberFour8 marked this conversation as resolved.
Show resolved Hide resolved
"description": "The HOPR protocol ensures everyone has control of their privacy, data, and identity. By running a HOPR Node, you can obtain HOPR tokens by relaying data and connect to the HOPR Network.",
"type": "service",
Expand Down
34 changes: 12 additions & 22 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,36 @@
version: "3.5"
services:
node:
image: "node.hopr.public.dappnode.eth:1.0.27"
image: "node.hopr.public.dappnode.eth:1.0.19"
build:
context: .
args:
UPSTREAM_VERSION: "2.0.7@sha256:cb63467df80840dc20b5f9f6d55977ede6e2902014dc67c86f3bbed3b69815ef"
UPSTREAM_VERSION: latest
NumberFour8 marked this conversation as resolved.
Show resolved Hide resolved
ports:
- "9091:9091/tcp"
- "9091:9091/udp"
- "3001"
volumes:
- "db:/app/hoprd-db"
- "data:/app/data"
ausias-armesto marked this conversation as resolved.
Show resolved Hide resolved
environment:
- DEBUG=hopr*
- HOPRD_ANNOUNCE=true
- RUST_LOG=info
- HOPRD_NETWORK=dufour
- HOPRD_API=true
- HOPRD_API_HOST=0.0.0.0
- HOPRD_API_PORT=3001
- HOPRD_HEALTH_CHECK=true
- HOPRD_HEALTH_CHECK_HOST=0.0.0.0
- HOPRD_HEALTH_CHECK_PORT=8080
- HOPRD_API_TOKEN=!5qxc9Lp1BE7IFQ-nrtttU
- HOPRD_DISABLE_API_AUTHENTICATION=true
- HOPRD_IDENTITY=/app/hoprd-db/.hopr-identity
- HOPRD_DATA=/app/hoprd-db/data
- HOPRD_INIT=true
- "HOPRD_HOST=127.0.0.1:9091"
- HOPRD_SAFE_ADDRESS=0x
- HOPRD_MODULE_ADDRESS=0x
- HOPRD_HEARTBEAT_THRESHOLD=60000
- HOPRD_HEARTBEAT_INTERVAL=20000
- HOPRD_PASSWORD="open-sesame-iTwnsPNg0hpagP+o6T0KOwiH9RQ0"
- HOPRD_HEARTBEAT_THRESHOLD=60
- HOPRD_HEARTBEAT_INTERVAL=20
- HOPRD_HEARTBEAT_VARIANCE=1
- HOPRD_PASSWORD=open-sesame-iTwnsPNg0hpagP+o6T0KOwiH9RQ0
- "HOPRD_PROVIDER=https://provider-proxy.hoprnet.workers.dev/xdai_mainnet"
NumberFour8 marked this conversation as resolved.
Show resolved Hide resolved
restart: unless-stopped
deploy:
resources:
limits:
memory: 3G
memory: 2G
admin:
image: "europe-west3-docker.pkg.dev/hoprassociation/docker-images/hopr-admin@sha256:b354b698ece88155607fcc0d325e57786ce0e15bb9d40dc180826ac3c1000c13"
image: >-
europe-west3-docker.pkg.dev/hoprassociation/docker-images/hopr-admin@sha256:b354b698ece88155607fcc0d325e57786ce0e15bb9d40dc180826ac3c1000c13
ports:
- "3000:80"
restart: unless-stopped
Expand All @@ -49,4 +39,4 @@ services:
limits:
memory: 256M
volumes:
db: {}
data: {}
30 changes: 24 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 52 additions & 0 deletions hoprd.cfg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---

hopr:
db:
data: /app/data/db
initialize: true
force_initialize: false
strategy:
on_fail_continue: true
allow_recursive: true
finalize_channel_closure: true
strategies: []
network_options:
min_delay: 1
max_delay: 300
quality_bad_threshold: 0.2
quality_offline_threshold: 0.5
quality_step: 0.1
quality_avg_window_size: 25
ignore_timeframe: 600
backoff_exponent: 1.5
backoff_min: 2.0
backoff_max: 300.0
protocol:
ack:
timeout: 15
heartbeat:
timeout: 15
msg:
timeout: 15
ticket_aggregation:
timeout: 15
chain:
announce: true
check_unrealized_balance: true
safe_module:
safe_transaction_service_provider: https://safe-transaction.prod.hoprtech.net/
transport:
announce_local_addresses: false
prefer_local_addresses: false
identity:
file: '/app/data/hoprd.id'
api:
enable: true
host:
address: !IPv4 0.0.0.0
port: 3001
inbox:
capacity: 512
max_age: 900
excluded_tags:
- 0
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "hopr-dappnode",
"repository": "https://github.com/dappnode/DAppNodePackage-Hopr",
"private": true,
"packageManager": "yarn@3.2.1",
"packageManager": "yarn@4.1.0",
"devDependencies": {
"@dappnode/dappnodesdk": "^0.2.68"
"@dappnode/dappnodesdk": "^0.3.14"
}
}
6 changes: 3 additions & 3 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ mkShell {
## base
envsubst

## node, minimum recommended version is v16, see README for more details
nodejs-16_x # v16.5.0
(yarn.override { nodejs = nodejs-16_x; }) # v1.22.10
# build utils
nodejs_20
(yarn.override { nodejs = nodejs_20; })

# custom pkg groups
macosPkgs
Expand Down
Loading
Loading