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

            return(commit);
        }
Ejemplo n.º 2
0
        public static async Task <CycleCommit> Apply(ProtocolHandler proto, Block block, List <Account> accounts)
        {
            var commit = new CycleCommit(proto)
            {
                Block = block, BootstrapedAccounts = accounts
            };
            await commit.Apply();

            return(commit);
        }