Have a look at NewBestBlockListener and the org.bitcoinj.core.AbstractBlockChain.addNewBestBlockListener() method. If you prefer an example, the BuildCheckpoints tool (in the tools subproject) has some code that does this.
On 11/07/2017 11:24 AM, ringtingt...@gmail.com wrote: > > Hi, > > Am looking on how to get notified of the arrival of a new block. Can this > be done? will it contain the block height info and the relay as well as > timestamp? > > thanks > -- 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 bitcoinj+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.