You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bip-0145.mediawiki
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ The template Object is revised to include a new key:
22
22
|-
23
23
! Key !! Required !! Type !! Description
24
24
|-
25
-
| costlimit || No || Number || total cost allowed in blocks
25
+
| weightlimit || No || Number || total weight allowed in blocks
26
26
|}
27
27
28
28
The '!' rule prefix MUST be enabled on the "segwit" rule for templates including transactions with witness data.
@@ -40,7 +40,7 @@ The Objects listed in the response's "transactions" key is revised to include th
40
40
|-
41
41
| txid || String || transaction id encoded in hexadecimal; required for transactions with witness data
42
42
|-
43
-
| cost || Number || numeric cost of the transaction, as counted for purposes of the block's costlimit; if key is not present, cost is unknown and clients MUST NOT assume it is zero, although they MAY choose to calculate it themselves
43
+
| weight || Number || numeric weight of the transaction, as counted for purposes of the block's weightlimit; if key is not present, weight is unknown and clients MUST NOT assume it is zero, although they MAY choose to calculate it themselves
44
44
|-
45
45
| hash || String || reversed hash of complete transaction (with witness data included) encoded in hexadecimal
46
46
|}
@@ -66,12 +66,12 @@ It additionally also adds a new way of counting resource limits, and so GBT must
66
66
67
67
==Rationale==
68
68
69
-
Why doesn't "costlimit" simply redefine the existing "sizelimit"?
69
+
Why doesn't "weightlimit" simply redefine the existing "sizelimit"?
70
70
* "sizelimit" is already enforced by clients by counting the sum of bytes in transactions' "data" keys.
71
-
* Servers may wish to limit the overall size of a block, independently from the "cost" of the block.
71
+
* Servers may wish to limit the overall size of a block, independently from the "weight" of the block.
72
72
73
-
Why is "sigoplimit" redefined instead of a new "sigopcostlimit" being added?
74
-
* The old limit was already arbitrarily defined, and could not be counted by clients on their own anyway. The concept of "sigop cost" is merely a change in the arbitrary formula used.
73
+
Why is "sigoplimit" redefined instead of a new "sigopweightlimit" being added?
74
+
* The old limit was already arbitrarily defined, and could not be counted by clients on their own anyway. The concept of "sigop weight" is merely a change in the arbitrary formula used.
75
75
76
76
Why is "sigoplimit" divided by 4?
77
77
* To resemble the previous values. (FIXME: is this a good reason? maybe we shouldn't divide it?)
0 commit comments