public static async Task <VotingCommit> Revert(ProtocolHandler proto, Block block) { var commit = new VotingCommit(proto); await commit.Init(block); await commit.Revert(); return(commit); }
public static async Task <VotingCommit> Apply(ProtocolHandler proto, RawBlock rawBlock) { var commit = new VotingCommit(proto); await commit.Init(rawBlock); await commit.Apply(); return(commit); }