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.
91e0c9b940
As per work done by szisti in PR#45: Extracted network 'Tasks' to their own classes. Network.NetworkProcessor reduced to only producing Tasks. Improved usage of SocketChannel interest-ops. Eventually this might lead to reducing task-producing synchronization lock into more granular locks. Work still needed to convert sending messages to a queue and to make use of OP_WRITE instead of sleeping to wait for socket buffer to empty. Disabled PeerConnectTask producer from checking against connected peers via DNS as it's too slow. Swapped Peer's replyQueues from SynchronizedMap(wrapped HashMap) to ConcurrentHashMap. Other minor changes within networking. |
||
---|---|---|
.github/workflows | ||
lib | ||
src | ||
tools | ||
WindowsInstaller | ||
.gitignore | ||
AutoUpdates.md | ||
DATABASE.md | ||
Dockerfile | ||
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