public static async Task<BallotsCommit> Revert(ProtocolHandler proto, Block block, BallotOperation op) { var commit = new BallotsCommit(proto); await commit.Init(block, op); await commit.Revert(); return commit; }
public static async Task<BallotsCommit> Apply(ProtocolHandler proto, Block block, RawOperation op, RawBallotContent content) { var commit = new BallotsCommit(proto); await commit.Init(block, op, content); await commit.Apply(); return commit; }