v31.1-roots.1 · Commit 2: [PATCH 02/17] feat(policy): preserve Roots parsing and local transaction checks
src/policy/settings.h
Before: src/policy/settings.h · After: src/policy/settings.h
File metadata
index c218c1628cd9e7b4fee095f44c64aad5321cef29..1506dc854036ddca64c32677d0153d5771b668ad 100644
Download original patch · Release notes
Diff rows 1–16 of 16. 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,16 @@
|
|
| 6 |
#ifndef BITCOIN_POLICY_SETTINGS_H
|
| 7 |
#define BITCOIN_POLICY_SETTINGS_H
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
extern unsigned int nBytesPerSigOp;
|
|
|
|
|
|
|
| 10 |
|
| 11 |
#endif // BITCOIN_POLICY_SETTINGS_H
|
|
|
|
| 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 |
+
|
| 16 |
+
extern unsigned int g_script_size_policy_limit;
|
| 17 |
extern unsigned int nBytesPerSigOp;
|
| 18 |
+
extern unsigned int nBytesPerSigOpStrict;
|
| 19 |
+
|
| 20 |
|
| 21 |
#endif // BITCOIN_POLICY_SETTINGS_H
|