Ported AbstractBlockChainListener and AbstractPeerEventListener
mvn test passed.