コード例 #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, RawBlock rawBlock)
        {
            var commit = new VotingCommit(proto);
            await commit.Init(rawBlock);

            await commit.Apply();

            return(commit);
        }