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.
90e0f9dddc
Although HSQLDB is happy being given unix-style path separator '/' and converting as necessary on other platforms (e.g. Windows), manipulation of repository pathnames in Java, outside of HSQLDB, needs to use platform-specific path separators. Thus, changes made to replace '/' with File.separator where necessary. This should fix repository rebuild errors, which then lead to odd start-up errors like: 2020-03-11 13:55:19 INFO Controller:270 - Starting repository 2020-03-11 13:55:20 INFO Controller:287 - Validating blockchain 2020-03-11 13:55:20 INFO HSQLDBRepository:227 - Rebuilding repository from scratch 2020-03-11 13:55:20 INFO GenesisBlock:296 - Using genesis block timestamp of 1583870000000 2020-03-11 13:55:21 WARN HSQLDBRepository:720 - Uncommitted changes (882) after connection close, session [3] java.lang.NullPointerException at org.qortal.transform.block.BlockTransformer.decodeOnlineAccounts(BlockTransformer.java:422) at org.qortal.block.Block.getExpandedAccounts(Block.java:546) at org.qortal.block.Block.increaseAccountLevels(Block.java:1245) at org.qortal.block.Block.increaseAccountLevels(Block.java:1239) at org.qortal.block.Block.process(Block.java:1206) at org.qortal.block.GenesisBlock.process(GenesisBlock.java:345) at org.qortal.block.BlockChain.rebuildBlockchain(BlockChain.java:526) at org.qortal.block.BlockChain.validate(BlockChain.java:481) at org.qortal.controller.Controller.main(Controller.java:289) The above happens because the old blockchain still exists when trying to process the genesis block. |
||
---|---|---|
lib/org/ciyam/at | ||
src | ||
tools | ||
.gitignore | ||
AutoUpdates.md | ||
DATABASE.md | ||
log4j2.properties | ||
pom.xml | ||
README.md | ||
run.sh | ||
stop.sh |
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: run.sh