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