public static async Task <DelegatorCycleCommit> Revert(ProtocolHandler proto) { var commit = new DelegatorCycleCommit(proto); await commit.Revert(); return(commit); }
public static async Task <DelegatorCycleCommit> Apply(ProtocolHandler proto, Block block, List <Account> accounts) { var commit = new DelegatorCycleCommit(proto) { Block = block, BootstrapedAccounts = accounts }; await commit.Apply(); return(commit); }