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

            await commit.Revert();

            return(commit);
        }
Ejemplo n.º 2
0
        public static async Task <DoubleEndorsingCommit> Apply(ProtocolHandler proto, Block block, RawOperation op, RawDoubleEndorsingEvidenceContent content)
        {
            var commit = new DoubleEndorsingCommit(proto);
            await commit.Init(block, op, content);

            await commit.Apply();

            return(commit);
        }