hybrid consensus algorithm