Esempio n. 1
0
        public static async Task <FreezerCommit> Revert(ProtocolHandler proto, Block block)
        {
            var commit = new FreezerCommit(proto);
            await commit.Init(block);

            await commit.Revert();

            return(commit);
        }
Esempio n. 2
0
        public static async Task <FreezerCommit> Apply(ProtocolHandler proto, Block block, RawBlock rawBlock)
        {
            var commit = new FreezerCommit(proto);
            await commit.Init(block, rawBlock);

            await commit.Apply();

            return(commit);
        }