So, I went into the source code and apparently the only way to get block notifications without having to download the full blockchain is to change the source code of bitcoinj.
In AbstractBlockChain.java line 352:
replace the body of the public boolean add(Block block) method with:
informListenersForNewBlock(block, NewBlockType.BEST_CHAIN, null, null, new StoredBlock(block, BigInteger.ZERO, 0)); return true;
Ray hulha
source share