based on https://github.com/eosforce/eos-light-node we add function that blocknum and blockid are saved in Elasticsearch database for query