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

            return(commit);
        }
Exemplo n.º 2
0
        public static async Task <DelegatorCycleCommit> Apply(ProtocolHandler proto, Block block, Cycle futureCycle)
        {
            var commit = new DelegatorCycleCommit(proto)
            {
                Block = block, FutureCycle = futureCycle
            };
            await commit.Apply();

            return(commit);
        }