finish code of feature 'get blockinfo'.