Exemplo n.º 1
0
        public static async Task <DelegatorCycleCommit> Revert(ProtocolHandler proto)
        {
            var commit = new DelegatorCycleCommit(proto);
            await commit.Revert();

            return(commit);
        }
Exemplo n.º 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);
        }