Improved run.sh, additional stop.sh and bumped genesis block timestamp in blockchain.json

This commit is contained in:
catbref 2020-02-04 12:56:07 +00:00
parent 07d4d6f11d
commit 1cb2935cad
3 changed files with 18 additions and 1 deletions

7
run.sh
View File

@ -6,6 +6,13 @@ if [ "$USER" = "root" ]; then
exit
fi
# No qortal.jar but we have a Maven built one?
# Be helpful and copy across to correct location
if [ ! -e qortal.jar -a -f target/qortal*.jar ]; then
echo "Copying Maven-built Qortal JAR to correct pathname"
cp target/qortal*.jar qortal.jar
fi
# Limits Java JVM stack size and maximum heap usage.
# Comment out for bigger systems, e.g. non-routers
JVM_MEMORY_ARGS="-Xss256k -Xmx128m"

View File

@ -57,7 +57,7 @@
},
"genesisInfo": {
"version": 4,
"timestamp": "1580720000000",
"timestamp": "1580820000000",
"transactions": [
{ "type": "ISSUE_ASSET", "owner": "QUwGVHPPxJNJ2dq95abQNe79EyBN2K26zM", "assetName": "QORT", "description": "QORTAL coin", "quantity": 0, "isDivisible": true, "reference": "28u54WRcMfGujtQMZ9dNKFXVqucY7XfPihXAqPFsnx853NPUwfDJy1sMH5boCkahFgjUNYqc5fkduxdBhQTKgUsC", "data": "{}" },
{ "type": "ISSUE_ASSET", "owner": "QUwGVHPPxJNJ2dq95abQNe79EyBN2K26zM", "assetName": "Legacy-QORA", "description": "Representative legacy QORA", "quantity": 0, "isDivisible": true, "data": "{}", "isUnspendable": true },

10
stop.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
echo 'Calling GET /admin/stop on local Qortal node'
if curl --url http://localhost:12391/admin/stop 1>/dev/null 2>&1; then
echo "Qortal node responded and should be shutting down"
exit 0
else
echo "No response from Qortal node - not running?"
exit 1
fi