Skip to content

Commit

Permalink
Merge pull request #60 from LeiCoin-official/leicoin-pos-v2
Browse files Browse the repository at this point in the history
Leicoin pos v2
  • Loading branch information
LeiCraft authored Jan 6, 2025
2 parents edafeb3 + 770bb5b commit a3e76ab
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docker/ptero/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function get_latest_version {
}

function get_current_version {
local version=$(leicoin-node --version 2>/dev/null)
local version=$(./leicoin-node --version 2>/dev/null)
echo $version | cut -d ' ' -f 2
}

Expand Down Expand Up @@ -70,7 +70,7 @@ function main {
check_cpu_arch

# Extract Startup CMD
STARTUP_CMD=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
STARTUP_CMD=$(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
extract_env_bool EXPERIMENTAL

LOCAL_VERSION=$(get_current_version)
Expand All @@ -96,7 +96,7 @@ function main {

fi

${STARTUP_CMD}
eval ${STARTUP_CMD}
}

main
24 changes: 22 additions & 2 deletions docker/ptero/egg-lei-coin-node.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2025-01-06T18:38:17+01:00",
"exported_at": "2025-01-06T19:41:49+01:00",
"name": "LeiCoin Node",
"author": "[email protected]",
"description": null,
Expand All @@ -13,7 +13,7 @@
"LeiCoin Node Latest": "ghcr.io\/leicoin-official\/leicoin-node:ptero-latest"
},
"file_denylist": [],
"startup": ".\/leicoin-node run --port={{SERVER_PORT}}",
"startup": "if [[ {{ONLY_CLI}} == \"1\" ]]; then AF=\"$AF --only-cli\"; fi; \r\nif [[ {{IGNORE_NO_PEERS}} == \"1\" ]]; then AF=\"$AF --ignore-no-peers\"; fi; \r\n.\/leicoin-node run --port={{SERVER_PORT}} $AF",
"config": {
"files": "{}",
"startup": "{\r\n \"done\": \"[Global] LeiCoin-Node started\"\r\n}",
Expand Down Expand Up @@ -47,6 +47,26 @@
"user_editable": true,
"rules": "required|string|max:20",
"field_type": "text"
},
{
"name": "Only CLI (Safe Mode)",
"description": "Start in Safe Mode",
"env_variable": "ONLY_CLI",
"default_value": "0",
"user_viewable": true,
"user_editable": true,
"rules": "boolean|int",
"field_type": "text"
},
{
"name": "Ignore No Peers to Sync with",
"description": "",
"env_variable": "IGNORE_NO_PEERS",
"default_value": "0",
"user_viewable": true,
"user_editable": true,
"rules": "boolean|int",
"field_type": "text"
}
]
}

0 comments on commit a3e76ab

Please sign in to comment.