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

            await commit.Revert();

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

            await commit.Apply();

            return(commit);
        }