public static async Task <DeactivationCommit> Revert(ProtocolHandler proto, Block block) { var commit = new DeactivationCommit(proto); await commit.Init(block); await commit.Revert(); return(commit); }
public static async Task <DeactivationCommit> Apply(ProtocolHandler proto, Block block, RawBlock rawBlock) { var commit = new DeactivationCommit(proto); await commit.Init(block, rawBlock); await commit.Apply(); return(commit); }