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.
ee5119e4dd
Controller now calls TradeBot.onChainTipChange() inside thread started by Controller.onNewBlock(), instead of blocking Controller.setChainTip(). DB TradeBotStates has trade_foreign_public_key changed to VARBINARY(33) as Bitcoin pubkeys aren't uniformly 32 bytes! Also, trade_state changed from TINYINT to SMALLINT to cover enum value range. TradeBot.createTrade() incorrectly used Crypto.digest() to create hash-of-secret instead of Crypto.hash160(). Also corrected tradeState to BOB_WAITING_FOR_AT_CONFIRM. Also added missing fee calculation. Added missing repository.saveChanges() to TradeBot methods. Added balance check to API POST /crosschain/tradebot before passing request to TradeBot.createTrade(), which also ensures there's a usable account last-reference too. |
||
---|---|---|
lib/org | ||
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