1
0
mirror of https://github.com/bitcoin/bips.git synced 2026-05-11 16:51:51 +00:00

BIP22: fix anchor links

This commit is contained in:
Murch
2026-02-27 12:43:35 -08:00
parent 835e7107b8
commit 42303cbdf8

View File

@@ -24,7 +24,7 @@ This BIP is licensed under the BSD 2-clause license.
A JSON-RPC method is defined, called "getblocktemplate". A JSON-RPC method is defined, called "getblocktemplate".
It accepts exactly one argument, which MUST be an Object of request parameters. It accepts exactly one argument, which MUST be an Object of request parameters.
If the request parameters include a "mode" key, that is used to explicitly select between the default "template" request or a [[bip-0023.mediawiki#user-content-Block_Proposal|"proposal"]]. If the request parameters include a "mode" key, that is used to explicitly select between the default "template" request or a [[bip-0023.mediawiki#block-proposal|"proposal"]].
Block template creation can be influenced by various parameters: Block template creation can be influenced by various parameters:
{| class="wikitable" {| class="wikitable"
@@ -32,7 +32,7 @@ Block template creation can be influenced by various parameters:
|- |-
! Key !! Required !! Type !! Description ! Key !! Required !! Type !! Description
|- |-
| capabilities || No || Array of Strings || SHOULD contain a list of the following, to indicate client-side support: [[#Optional: Long Polling|"longpoll"]], "coinbasetxn", "coinbasevalue", [[bip-0023.mediawiki#user-content-Block_Proposal|"proposal"]], [[bip-0023.mediawiki#user-content-Logical_Services|"serverlist"]], "workid", and any of the [[bip-0023.mediawiki#user-content-Mutations|mutations]] | capabilities || No || Array of Strings || SHOULD contain a list of the following, to indicate client-side support: [[#optional-long-polling|"longpoll"]], "coinbasetxn", "coinbasevalue", [[bip-0023.mediawiki#block-proposal|"proposal"]], [[bip-0023.mediawiki#logical-services|"serverlist"]], "workid", and any of the [[bip-0023.mediawiki#mutations|mutations]]
|- |-
| mode || No || String || MUST be "template" or omitted | mode || No || String || MUST be "template" or omitted
|} |}
@@ -55,17 +55,17 @@ getblocktemplate MUST return a JSON Object containing the following keys:
|- |-
| sizelimit || No || Number || number of bytes allowed in blocks | sizelimit || No || Number || number of bytes allowed in blocks
|- |-
| transactions || Should || Array of Objects || Objects containing [[#Transactions Object Format|information for Bitcoin transactions]] (excluding coinbase) | transactions || Should || Array of Objects || Objects containing [[#transactions-object-format|information for Bitcoin transactions]] (excluding coinbase)
|- |-
| version || Yes || Number || always 1 or 2 (at least for bitcoin) - clients MUST understand the implications of the version they use (eg, comply with [[bip-0034.mediawiki|BIP 0034]] for version 2) | version || Yes || Number || always 1 or 2 (at least for bitcoin) - clients MUST understand the implications of the version they use (eg, comply with [[bip-0034.mediawiki|BIP 0034]] for version 2)
|- |-
| coinbaseaux || No || Object || data that SHOULD be included in the coinbase's scriptSig content. Only the values (hexadecimal byte-for-byte) in this Object should be included, not the keys. This does not include the block height, which is required to be included in the scriptSig by [[bip-0034.mediawiki|BIP 0034]]. It is advisable to encode values inside "PUSH" opcodes, so as to not inadvertently expend SIGOPs (which are counted toward limits, despite not being executed). | coinbaseaux || No || Object || data that SHOULD be included in the coinbase's scriptSig content. Only the values (hexadecimal byte-for-byte) in this Object should be included, not the keys. This does not include the block height, which is required to be included in the scriptSig by [[bip-0034.mediawiki|BIP 0034]]. It is advisable to encode values inside "PUSH" opcodes, so as to not inadvertently expend SIGOPs (which are counted toward limits, despite not being executed).
|- |-
| coinbasetxn || this or ↓ || Object || [[#Transactions Object Format|information for coinbase transaction]] | coinbasetxn || this or ↓ || Object || [[#transactions-object-format|information for coinbase transaction]]
|- |-
| coinbasevalue || this or ↑ || Number || total funds available for the coinbase (in Satoshis) | coinbasevalue || this or ↑ || Number || total funds available for the coinbase (in Satoshis)
|- |-
| workid || No || String || if provided, this value must be returned with results (see [[#Block Submission|Block Submission]]) | workid || No || String || if provided, this value must be returned with results (see [[#block-submission|Block Submission]])
|} |}
==== Transactions Object Format ==== ==== Transactions Object Format ====