Efficient and resilient consensus for permissioned blockchain