Try adding the @Override annotation above the progress method
On Mon, May 21, 2018 at 7:59 AM, Bobby_Bouche <[email protected]> wrote:
> here is my attempt in this. Still doesnt pick up the percentage update.
>
> DownloadProgressTracker bListener = new DownloadProgressTracker() {
> @Override
> public void doneDownload() {
> System.out.println("blockchain downloaded");
> }
> public void progress(double pct, int blocksSoFar, Date date) {
> System.out.println("blockchain "+(int)pct+"% completed");
> }
> };
> kit.setDownloadListener(bListener).setBlockingStartup(false);
>
> --
> You received this message because you are subscribed to the Google Groups
> "bitcoinj" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"bitcoinj" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.