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

            await commit.Revert();

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

            await commit.Apply();

            return(commit);
        }