Пример #1
0
        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);
        }
Пример #2
0
        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);
        }