From 8975fa73c3cd21a502eef8eaa0471dd6524d317f Mon Sep 17 00:00:00 2001 From: CryptoManiac Date: Tue, 1 Sep 2015 11:48:13 +0300 Subject: [PATCH] nMaxSigOps constant. --- Novacoin/CBlock.cs | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) 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; } -- 1.7.1