change getHeight to getLastHeight and add subscribeAddress.