get going with tron
This commit is contained in:
@@ -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
|
||||
|
||||
1
tron.yml
1
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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user