Skip to content

Commit d8928eb

Browse files
committed
BIP 145: Update s/cost/weight/
1 parent c98859f commit d8928eb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

bip-0145.mediawiki

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The template Object is revised to include a new key:
2222
|-
2323
! Key !! Required !! Type !! Description
2424
|-
25-
| costlimit || No || Number || total cost allowed in blocks
25+
| weightlimit || No || Number || total weight allowed in blocks
2626
|}
2727

2828
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
4040
|-
4141
| txid || String || transaction id encoded in hexadecimal; required for transactions with witness data
4242
|-
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
4444
|-
4545
| hash || String || reversed hash of complete transaction (with witness data included) encoded in hexadecimal
4646
|}
@@ -66,12 +66,12 @@ It additionally also adds a new way of counting resource limits, and so GBT must
6666

6767
==Rationale==
6868

69-
Why doesn't "costlimit" simply redefine the existing "sizelimit"?
69+
Why doesn't "weightlimit" simply redefine the existing "sizelimit"?
7070
* "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.
7272
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.
7575
7676
Why is "sigoplimit" divided by 4?
7777
* To resemble the previous values. (FIXME: is this a good reason? maybe we shouldn't divide it?)

0 commit comments

Comments
 (0)