https://github.com/JeremyRand/bitcoinj/tree/namecoin
This is a partial port of BitcoinJ to Namecoin. It's loosely based on parts of HashEngineering's NamecoinJ. Unfortunately, HashEngineering's code was pretty messy (did you know that HashEngineering's NamecoinJ has a bunch of code in it that's specific to Litecoin, Digitalcoin, and Groestlcoin?). So I'm trying to be somewhat cleaner. It's rebased on latest master branch of upstream BitcoinJ. Auxpow support is missing right now, so it will stop syncing at about 6%. I'm going to ping one of the BitcoinJ people to see if there is a way we can avoid maintaining a full fork; if that pans out, all of this code will be rewritten.
All that said, if you'd like to try it out:
Code: Select all
mvn clean install -Dmaven.test.skip=true
cd examples
mvn exec:java -Dexec.mainClass=org.bitcoinj.examples.ForwardingService -Dexec.args="NFqbaS7ReiQ9MBmsowwcDSmp4iDznjmEh5" 2> forwarding-service.log
Feel free to substitute any mainnet Namecoin address into that last line.
The log file will show progress syncing the blockchain. Syncing is somewhat slow, because BitcoinJ can only sync from Namecoin Core clients; NamecoinQ clients will be dropped by BitcoinJ. Protip: search the log file for the "%" character to find the progress notices.
Huge thanks to EN and Stephen for their ongoing work in this area, and huge thanks to Brandon for giving a bunch of useful tips on this.