Exemple #1
0
        public static async Task <NonceRevelationsCommit> Revert(ProtocolHandler proto, Block block, NonceRevelationOperation op)
        {
            var commit = new NonceRevelationsCommit(proto);
            await commit.Init(block, op);

            await commit.Revert();

            return(commit);
        }
Exemple #2
0
        public static async Task <NonceRevelationsCommit> Apply(ProtocolHandler proto, Block block, RawOperation op, RawNonceRevelationContent content)
        {
            var commit = new NonceRevelationsCommit(proto);
            await commit.Init(block, op, content);

            await commit.Apply();

            return(commit);
        }