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

            await commit.Revert();

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

            await commit.Apply();

            return(commit);
        }