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); }
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); }