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