summaryrefslogtreecommitdiff
path: root/bip-0145.mediawiki
diff options
context:
space:
mode:
authorMatt David <matt@netki.com>2016-07-27 11:01:28 -0700
committerMatt David <matt@netki.com>2016-07-27 11:01:28 -0700
commit95df420895879920114c48771b6473aedf9837da (patch)
tree61ae22f6f0d58b30f1bac6cff41bb81eef8298d9 /bip-0145.mediawiki
parentcd9d2d37b52d2676e3c50c39ab0d37ec79f6476e (diff)
parent87cdaa7d2e82e0f1ad502f6546f0d024585ee815 (diff)
Merge remote-tracking branch 'upstream/master'
# Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
Diffstat (limited to 'bip-0145.mediawiki')
-rw-r--r--bip-0145.mediawiki12
1 files changed, 6 insertions, 6 deletions
diff --git a/bip-0145.mediawiki b/bip-0145.mediawiki
index b04c9e6..cac838d 100644
--- a/bip-0145.mediawiki
+++ b/bip-0145.mediawiki
@@ -22,7 +22,7 @@ The template Object is revised to include a new key:
|-
! Key !! Required !! Type !! Description
|-
-| costlimit || No || Number || total cost allowed in blocks
+| weightlimit || No || Number || total weight allowed in blocks
|}
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
|-
| txid || String || transaction id encoded in hexadecimal; required for transactions with witness data
|-
-| 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
+| 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
|-
| hash || String || reversed hash of complete transaction (with witness data included) encoded in hexadecimal
|}
@@ -66,12 +66,12 @@ It additionally also adds a new way of counting resource limits, and so GBT must
==Rationale==
-Why doesn't "costlimit" simply redefine the existing "sizelimit"?
+Why doesn't "weightlimit" simply redefine the existing "sizelimit"?
* "sizelimit" is already enforced by clients by counting the sum of bytes in transactions' "data" keys.
-* Servers may wish to limit the overall size of a block, independently from the "cost" of the block.
+* Servers may wish to limit the overall size of a block, independently from the "weight" of the block.
-Why is "sigoplimit" redefined instead of a new "sigopcostlimit" being added?
-* 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.
+Why is "sigoplimit" redefined instead of a new "sigopweightlimit" being added?
+* 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.
Why is "sigoplimit" divided by 4?
* To resemble the previous values. (FIXME: is this a good reason? maybe we shouldn't divide it?)