The consensus service was becoming a bit messy and difficult to maintain. This PR moves handling invididual events to their own function and refactors the cancelabe task system in a separate struct.
The consensus service was becoming a bit messy and difficult to maintain. This PR moves handling invididual events to their own function and refactors the cancelabe task system in a separate struct.