Skip to content

Commit b677d82

Browse files
committed
replace wrong references to NewMiningJob with NewTemplate
1 parent b486ac4 commit b677d82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

07-Template-Distribution-Protocol.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Thus, this message is used to indicate that some additional space and sigops in
1717

1818
The Job Declarator MUST discover the maximum serialized size of the additional outputs and sigops which will be added by the pool(s) it intends to use this work.
1919
It then MUST communicate it to the Template Provider via this message.
20-
The Template Provider MUST NOT provide `NewMiningJob` messages which would represent consensus-invalid blocks once this additional size and sigops — along with a maximally-sized (100 byte) coinbase script field — is added.
20+
The Template Provider MUST NOT provide `NewTemplate` messages which would represent consensus-invalid blocks once this additional size and sigops — along with a maximally-sized (100 byte) coinbase script field — is added.
2121
Further, the Template Provider MUST consider the maximum additional bytes required in the output count variable-length integer in the coinbase transaction when complying with the size limits.
2222
Current sigops limit per block in bitcoin is 80_000. We are not aware of any use cases where
2323
coinbase have more the 65_535 so coinbase_output_max_sigops is an U16. Note that taproot outputs consume 0 sigops.
@@ -114,7 +114,7 @@ Upon finding a coinbase transaction/nonce pair which double-SHA256 hashes at or
114114
| Field Name | Data Type | Description |
115115
| ---------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
116116
| template_id | U64 | The template_id field as it appeared in NewTemplate |
117-
| version | U32 | The version field in the block header. Bits not defined by BIP320 as additional nonce MUST be the same as they appear in the NewMiningJob message, other bits may be set to any value. |
117+
| version | U32 | The version field in the block header. Bits not defined by BIP320 as additional nonce MUST be the same as they appear in the NewTemplate message, other bits may be set to any value. |
118118
| header_timestamp | U32 | The nTime field in the block header. This MUST be greater than or equal to the header_timestamp field in the latest SetNewPrevHash message and lower than or equal to that value plus the number of seconds since the receipt of that message. |
119119
| header_nonce | U32 | The nonce field in the header |
120-
| coinbase_tx | B0_64K | The full serialized coinbase transaction, meeting all the requirements of the NewMiningJob message, above |
120+
| coinbase_tx | B0_64K | The full serialized coinbase transaction, meeting all the requirements of the NewTemplate message, above |

0 commit comments

Comments
 (0)