Esempio 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);
        }
Esempio 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);
        }