示例#1
0
        public static async Task <DelegatorCycleCommit> Revert(ProtocolHandler proto)
        {
            var commit = new DelegatorCycleCommit(proto);
            await commit.Revert();

            return(commit);
        }
示例#2
0
        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);
        }