v29.4-roots.1 · Commit 7: [PATCH 07/13] release: establish Roots maintenance and assurance
src/policy/settings.h
Before: src/policy/settings.h · After: src/policy/settings.h
File metadata
index 03cfc3775da1c6a07a51f6ad468d7357fe757568..0d623dee6fe286844e0bb8a8c44f3f864bb7cf82 100644
Download original patch · Release notes
Diff rows 1–15 of 15. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
src/policy/settings.h
CHANGED
|
@@ -6,6 +6,15 @@
|
|
| 6 |
#ifndef BITCOIN_POLICY_SETTINGS_H
|
| 7 |
#define BITCOIN_POLICY_SETTINGS_H
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
extern unsigned int g_script_size_policy_limit;
|
| 10 |
extern unsigned int nBytesPerSigOp;
|
| 11 |
extern unsigned int nBytesPerSigOpStrict;
|
|
|
|
| 6 |
#ifndef BITCOIN_POLICY_SETTINGS_H
|
| 7 |
#define BITCOIN_POLICY_SETTINGS_H
|
| 8 |
|
| 9 |
+
/** Default for -maxscriptsize. */
|
| 10 |
+
static constexpr unsigned int DEFAULT_SCRIPT_SIZE_POLICY_LIMIT{1650};
|
| 11 |
+
/** Default for -bytespersigop. */
|
| 12 |
+
static constexpr unsigned int DEFAULT_BYTES_PER_SIGOP{20};
|
| 13 |
+
/** Default for -bytespersigopstrict. */
|
| 14 |
+
static constexpr unsigned int DEFAULT_BYTES_PER_SIGOP_STRICT{20};
|
| 15 |
+
/** Default for -datacarriercost (multiplied by WITNESS_SCALE_FACTOR). */
|
| 16 |
+
static constexpr unsigned int DEFAULT_WEIGHT_PER_DATA_BYTE{4};
|
| 17 |
+
|
| 18 |
extern unsigned int g_script_size_policy_limit;
|
| 19 |
extern unsigned int nBytesPerSigOp;
|
| 20 |
extern unsigned int nBytesPerSigOpStrict;
|