From: CryptoManiac Date: Tue, 1 Sep 2015 08:48:13 +0000 (+0300) Subject: nMaxSigOps constant. X-Git-Url: https://git.novaco.in/?p=NovacoinLibrary.git;a=commitdiff_plain;h=8975fa73c3cd21a502eef8eaa0471dd6524d317f nMaxSigOps constant. --- diff --git a/Novacoin/CBlock.cs b/Novacoin/CBlock.cs index 8ac3cad..3f72c68 100644 --- a/Novacoin/CBlock.cs +++ b/Novacoin/CBlock.cs @@ -52,6 +52,11 @@ namespace Novacoin /// public const uint nMaxBlockSize = 1000000; + /// + /// Sanity threshold for amount of sigops. + /// + public const uint nMaxSigOps = 20000; + /// /// Block header. /// @@ -250,7 +255,7 @@ namespace Novacoin } // Reject block if validation would consume too much resources. - if (nSigOps > 50000) + if (nSigOps > nMaxSigOps) { return false; }