modified bitcoinj java implementation supporting terracoin