コード例 #1
0
        public static async Task <VotingCommit> Revert(ProtocolHandler proto, Block block)
        {
            var commit = new VotingCommit(proto);
            await commit.Init(block);

            await commit.Revert();

            return(commit);
        }
コード例 #2
0
        public static async Task <VotingCommit> Apply(ProtocolHandler proto, Block block, RawBlock rawBlock)
        {
            var commit = new VotingCommit(proto);
            await commit.Init(block, rawBlock);

            await commit.Apply();

            return(commit);
        }