Replace all `SELECT num` from app specific blocks view with get_head_state
Due to performance issues when querying for last num of app_name.blocks_view
, additional function get_head_state() was created.
Edited by Mateusz Żebrak
Due to performance issues when querying for last num of app_name.blocks_view
, additional function get_head_state() was created.