From c29927599297d81110305b574132142f571fdd4f Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sun, 15 Dec 2024 08:27:07 +0100 Subject: [PATCH] get going with tron --- sync-status.sh | 3 ++- tron.yml | 1 + upstreams.sh | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sync-status.sh b/sync-status.sh index 67f6213b..1c7bd01f 100755 --- a/sync-status.sh +++ b/sync-status.sh @@ -9,7 +9,8 @@ while IFS= read -r line; do blacklist+=("$line") done < "$BASEPATH/path-blacklist.txt" -pathlist=$(cat $BASEPATH/$1.yml | grep -oP "(?<=stripprefix\.prefixes).*\"" | cut -d'=' -f2- | sed 's/.$//') +#pathlist=$(cat $BASEPATH/$1.yml | grep -oP "(?<=stripprefix\.prefixes).*\"" | cut -d'=' -f2- | sed 's/.$//') +pathlist=$(cat $BASEPATH/$1.yml | grep -oP "(?<=PathPrefix).*\"" | cut -d'`' -f2-2) for path in $pathlist; do include=true diff --git a/tron.yml b/tron.yml index c1b7eef7..f733a2f7 100644 --- a/tron.yml +++ b/tron.yml @@ -1,6 +1,7 @@ services: tron-fullnode: image: tronprotocol/java-tron:GreatVoyage-v4.7.7 + user: root stop_grace_period: 5m ulimits: nofile: 1048576 diff --git a/upstreams.sh b/upstreams.sh index cb305036..8c71b318 100755 --- a/upstreams.sh +++ b/upstreams.sh @@ -28,7 +28,8 @@ for part in "${parts[@]}"; do if $include; then - pathlist=$(cat $BASEPATH/$part | grep -oP "(?<=stripprefix\.prefixes).*\"" | cut -d'=' -f2- | sed 's/.$//') + #pathlist=$(cat $BASEPATH/$part | grep -oP "(?<=stripprefix\.prefixes).*\"" | cut -d'=' -f2- | sed 's/.$//') + pathlist=$(cat $BASEPATH/$part | grep -oP "(?<=PathPrefix).*\"" | cut -d'`' -f2-2) for path in $pathlist; do path_include=true