forked from Qortal/qortal
Qortal Core - Main Code Repository
Decentralized Data Network - Blockchain - TRUE Cross-Chain Trading - Application and Website Hosting - Much More - Qortal is the future internet infrastructure for the global digital world.
019ab2b21d
The script will fetch a set of blocks and then backtest the specified blockTimings settings (target, deviation, and power) against those real life blocks. This allows configurations to be fine tuned to tighten up block times, and to adjust the timestamp variance between levels. Usage: block-timings.sh <startheight> <count> [target] [deviation] [power] startheight: a block height, preferably within the untrimmed range, to avoid data gaps count: the number of blocks to request and analyse after the start height. Default: 100 target: the target block time in milliseconds. Originates from blockchain.json. Default: 60000 deviation: the allowed block time deviation in milliseconds. Originates from blockchain.json. Default: 30000 power: used when transforming key distance to a time offset. Originates from blockchain.json. Default: 0.2 |
||
---|---|---|
lib/org | ||
src | ||
tools | ||
WindowsInstaller | ||
.DS_Store | ||
.gitignore | ||
AutoUpdates.md | ||
DATABASE.md | ||
log4j2.properties | ||
pom.xml | ||
README.md | ||
run.sh | ||
start.sh | ||
stop.sh | ||
TestNets.md |
Qortal Project - Official Repo
Build / run
- Requires Java 11. OpenJDK 11 recommended over Java SE.
- Install Maven
- Use Maven to fetch dependencies and build:
mvn clean package
- Built JAR should be something like
target/qortal-1.0.jar
- Create basic settings.json file:
echo '{}' > settings.json
- Run JAR in same working directory as settings.json:
java -jar target/qortal-1.0.jar
- Wrap in shell script, add JVM flags, redirection, backgrounding, etc. as necessary.
- Or use supplied example shell script: start.sh