Blockcore.Features.Consensus.Rules.CommonRules.PosBlockSignatureRepresentationRule.Run C# (CSharp) Method

Run() public method

The block signature is not in the canonical format.
public Run ( RuleContext context ) : void
context RuleContext
return void
        public override void Run(RuleContext context)
        {
            if (!PosBlockValidator.IsCanonicalBlockSignature((PosBlock)context.ValidationContext.BlockToValidate, true))
            {
                ConsensusErrors.BadBlockSignature.Throw();
            }
        }
    }
PosBlockSignatureRepresentationRule