예제 #1
0
        public static async Task <RevelationPenaltyCommit> Revert(ProtocolHandler proto, Block block)
        {
            var commit = new RevelationPenaltyCommit(proto);
            await commit.Init(block);

            await commit.Revert();

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

            await commit.Apply();

            return(commit);
        }