aboutsummaryrefslogtreecommitdiff
path: root/src/policy
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2020-10-30 14:56:16 -0700
committerPieter Wuille <pieter@wuille.net>2020-11-26 14:56:25 -0800
commit2d8099c713dfd4b546150fd53c2e4f364b9009f4 (patch)
treed2f926b862ebe3e85eb244f1d749a497a3a971f0 /src/policy
parent84e29c7c0141b52044020ec0c5dfa8a462b7e97f (diff)
downloadbitcoin-2d8099c713dfd4b546150fd53c2e4f364b9009f4.tar.xz
Mention units of MAX_STANDARD_ policy constants
Diffstat (limited to 'src/policy')
-rw-r--r--src/policy/policy.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/policy/policy.h b/src/policy/policy.h
index 466cf029a4..fc144e924b 100644
--- a/src/policy/policy.h
+++ b/src/policy/policy.h
@@ -38,11 +38,11 @@ static const unsigned int DEFAULT_BYTES_PER_SIGOP = 20;
static const bool DEFAULT_PERMIT_BAREMULTISIG = true;
/** The maximum number of witness stack items in a standard P2WSH script */
static const unsigned int MAX_STANDARD_P2WSH_STACK_ITEMS = 100;
-/** The maximum size of each witness stack item in a standard P2WSH script */
+/** The maximum size in bytes of each witness stack item in a standard P2WSH script */
static const unsigned int MAX_STANDARD_P2WSH_STACK_ITEM_SIZE = 80;
-/** The maximum size of each witness stack item in a standard BIP 342 script (Taproot, leaf version 0xc0) */
+/** The maximum size in bytes of each witness stack item in a standard BIP 342 script (Taproot, leaf version 0xc0) */
static const unsigned int MAX_STANDARD_TAPSCRIPT_STACK_ITEM_SIZE = 80;
-/** The maximum size of a standard witnessScript */
+/** The maximum size in bytes of a standard witnessScript */
static const unsigned int MAX_STANDARD_P2WSH_SCRIPT_SIZE = 3600;
/** Min feerate for defining dust. Historically this has been based on the
* minRelayTxFee, however changing the dust limit changes which transactions are