public static async Task <DoubleEndorsingCommit> Revert(ProtocolHandler proto, Block block, DoubleEndorsingOperation op) { var commit = new DoubleEndorsingCommit(proto); await commit.Init(block, op); await commit.Revert(); return(commit); }
public static async Task <DoubleEndorsingCommit> Apply(ProtocolHandler proto, Block block, RawOperation op, RawDoubleEndorsingEvidenceContent content) { var commit = new DoubleEndorsingCommit(proto); await commit.Init(block, op, content); await commit.Apply(); return(commit); }