diff options
author | Peter Todd <pete@petertodd.org> | 2014-05-08 00:18:57 -0400 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-08-13 14:37:56 +0200 |
commit | 9ee09dc64fbe712401c57b458c8254a1fdaaa5f2 (patch) | |
tree | ebb97a71ffa03c4707c95784d3b37972eb0002d2 /src/main.h | |
parent | ce094d83ce484ae38d091e5a15f6f94ed94ebd89 (diff) | |
download | bitcoin-9ee09dc64fbe712401c57b458c8254a1fdaaa5f2.tar.xz |
Reapply: Reject transactions with excessive numbers of sigops
Reverting was based on a misunderstanding, it appears.
Github-Pull: #4150
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h index a27020459a..01d3f119e1 100644 --- a/src/main.h +++ b/src/main.h @@ -45,6 +45,8 @@ static const unsigned int MAX_STANDARD_TX_SIZE = 100000; static const unsigned int MAX_BLOCK_SIGOPS = MAX_BLOCK_SIZE/50; /** Maxiumum number of signature check operations in an IsStandard() P2SH script */ static const unsigned int MAX_P2SH_SIGOPS = 15; +/** The maximum number of sigops we're willing to relay/mine in a single tx */ +static const unsigned int MAX_TX_SIGOPS = MAX_BLOCK_SIGOPS/5; /** The maximum number of orphan transactions kept in memory */ static const unsigned int MAX_ORPHAN_TRANSACTIONS = MAX_BLOCK_SIZE/100; /** Default for -maxorphanblocks, maximum number of orphan blocks kept in memory */ |