mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 15:22:16 +00:00
Java library for adding altcoin support to bitcoinj
21b3c06878
Script.<clinit> depended both on Script.<init> and NetworkParameters.<init> to prepare ScriptChunk cache. At the same time NetworkParameters.<init> depended on Script.<clinit> by using Script.writeBytes(). The fix frees Script.<clinit> from both the NetworkParameters and Script objects. This should remove the root cause behind NetworkParameters construction not being thread safe. |
||
---|---|---|
core | ||
designdocs | ||
examples | ||
misc | ||
orchid | ||
tools | ||
wallettemplate | ||
.gitattributes | ||
.gitignore | ||
AUTHORS | ||
COPYING | ||
HD Wallets TODO.txt | ||
pom.xml | ||
README |
To get started, ensure you have the latest JDK installed, and download Maven from: http://maven.apache.org/ Then run "mvn clean package" to compile the software. You can also run "mvn site:site" to generate a website with useful information like JavaDocs. The outputs are under the target/ directory. Alternatively, just import the project using your IDE. IntelliJ has Maven integration once you tell it where to find your unzipped Maven install directory. Now try running one of the example apps: cd examples mvn exec:java -Dexec.mainClass=com.google.bitcoin.examples.ForwardingService -Dexec.args="<insert a bitcoin address here>" It will download the block chain and eventually print a Bitcoin address. If you send coins to it, it will forward them on to the address you specified. Note that this example app does not use checkpointing, so the initial chain sync will be pretty slow. You can make an app that starts up and does the initial sync much faster by including a checkpoints file; see the documentation for more info on this. Now you are ready to follow the tutorial: https://bitcoinj.github.io/getting-started