Function: finalizeEpoch()
This function is used to finalize the voting results of all pools, up to the current epoch.
Branches and code coverage
Intended branches
Call
applyPoolSlopeChanges()
for all active pools.Set all past epochs as finalized.