replace blockchain.height with height(), and fix server_lag issue