Reorganize SQL functions

  • Breakdown functions and operation processes into smaller modules
  • Reduce instances of querying operations_view related views to once only, and pass on to relevant functions during block_range processing

  • Witness votes collection
  • Current witness votes state table maintenance
  • Proxy witness operations (history)
  • Current witness proxy state table maintenance
  • Process witness updates (witness_update_operation)
  • Fix references and queries affected by schema changes
Edited by imwatsi