Move DEFAULT_BYTES_PER_SIGOP to policy/policy.h

This commit is contained in:
lateminer
2018-10-23 23:11:23 +03:00
parent 9b55796d56
commit 1534febd08
4 changed files with 5 additions and 4 deletions

View File

@@ -26,6 +26,8 @@ static const unsigned int MAX_P2SH_SIGOPS = 15;
static const unsigned int MAX_STANDARD_TX_SIGOPS = MAX_BLOCK_SIGOPS/5;
/** Default for -maxmempool, maximum megabytes of mempool memory usage */
static const unsigned int DEFAULT_MAX_MEMPOOL_SIZE = 300;
/** Default for -bytespersigop */
static const unsigned int DEFAULT_BYTES_PER_SIGOP = 20;
/**
* Standard script verification flags that standard transactions will comply
* with. However scripts violating these flags may still be present in valid
@@ -61,4 +63,6 @@ bool IsStandardTx(const CTransaction& tx, std::string& reason);
*/
bool AreInputsStandard(const CTransaction& tx, const CCoinsViewCache& mapInputs);
extern unsigned int nBytesPerSigOp;
#endif // BITCOIN_POLICY_POLICY_H